zeOxx / StudentGame

A continuation of the previous repo (https://github.com/zeOxx/Perihelion)
4 stars 1 forks source link

Rewrite all setters and getters #1

Open zeOxx opened 11 years ago

zeOxx commented 11 years ago

Most setters and getters are written separately. Change this to the following format:

public void Variable
{
    get { return this.variable; }
    set { this.variable = value; }
}

Notice that the method is named the same as the variable, only with a capital letter.

NOTE that this is only for setters and getters. Updaters stay the same

zeOxx commented 11 years ago

Also, keep in mind that this is VERY LOW on the priority list!

snorrewb commented 11 years ago

Settters and getters rewritten for Enemy.cs, will rewrite entire GameObject hierarchy during and after fixing Enemy and implementing AI for readability.

snorrewb commented 11 years ago

Entire Unit.cs and children rewritten. More to follow.

snorrewb commented 11 years ago

Getters and setters should be rewritten for the entire GameObject hierarchy. I don't know how many other getters and setters are hanging around, but I will look at them this weekend. ARE there others?

snorrewb commented 11 years ago

Getters and setters in PhysicsEngine need to be rewritten.