Tuesday 18 June 2013

Simple WoW stuff

A character in WoW has 5 base character attributes:  strength, agility, stamina, intellect and spirit.

There are 7 calculated character statistics for each player.

The player stats are calculated based on the combination of the race and class, so that class bonus' are added on to base race attributes.

PlayerStats = BaseRaceAttributes + ClassEffects

The health of a character is calculated using the following equations: 
If Stamina is less than 20:

    Health = BaseHealth + (Stamina - 20)



If Stamina is greater than or equal to 20:

    Health = BaseHealth + 10 * (Stamina - 20)

The mana of a character is calculated using the following equations: 
If Intellect is less than 20:

    Mana = BaseMana + (Intellect - 20)



If Intellect is greater than or equal to 20:

    Mana = BaseMana + 15 * (Intellect - 20)

Calculated player mana algorithm
Calculated player health algorithm

Tuesday 4 June 2013

Maths

+ is the addition operator
- is the subtraction operator
* is the multiplication operator
/ is the division operator

Monday 3 June 2013

Compiling a Java program

1.  The 2 main components of the Java platform are the Java Virtual Machine and the Java Application Programming Interface.
2.  The file extension of a Java source code file is the .java extension.
3.  The file extension of a file that has been compiled is the javac compiler.
4.  The name of the Java compiler is the javac compiler.
5.  The type of code contained by a .class is called bytecodes.
6.  The language of the Java Virtual Machine is bytecodes.
7.  Libraries of related classes and interfaces are called packages.

Introduction

Hi, i'm Tyson and this is my new blog.  I'll be using this blog to record pieces of code so that I can come back to this in the future.