public ActiveChar(Loc2D newLoc, Direction8 charDir) { //clean variables CharLoc = newLoc; CharDir = charDir; HP = MaxHP; Status = Enums.StatusAilment.OK; StatusCounter = 0; Moves = new MoveState[Processor.MAX_MOVE_SLOTS]; for (int i = 0; i < Processor.MAX_MOVE_SLOTS; i++) { Moves[i] = new MoveState(); } VolatileStatus = new Dictionary<string, ExtraStatus>(); }
public void Initialize() { dead = false; //clean variables HP = MaxHP; Status = Enums.StatusAilment.OK; StatusCounter = 0; Moves = new MoveState[Processor.MAX_MOVE_SLOTS]; for (int i = 0; i < Processor.MAX_MOVE_SLOTS; i++) { Moves[i] = new MoveState(); } VolatileStatus = new Dictionary<string, ExtraStatus>(); }