We talked about the scope of a variable or method.
In short this means how long a variable 'live'.
We also talked about enums and state machines.
In short a enum is a boolean with additional states
for example:
public enum unitState {
IDLE,
DEFENSIVE,
AGGRESSIVE
}
See the link for the slides from the lessons:
scope:
http://www.kevinwilmink.nl/Seminar/Scope.ppt
Enums:
http://www.kevinwilmink.nl/Seminar/Enums.ppt
Notepad assignments in class:
http://softlion.nl/programmingprinciples/EnumHints.txt
Geen opmerkingen:
Een reactie posten