private void setState(ZertzMoveState newState) { this.state = newState; if (this.state is FinishZertzMoveState) { this.zertzGame.FinishTurn(); //EVENTS this.perform_ChangeState(0x00); this.state = new StartZertzMoveState(this); } }
public ZertzMoveCreator(ZertzGame game) { this.zertzGame = game; this.zertzBoard = this.zertzGame.Board; this.state = new StartZertzMoveState(this); }
private void setState(ZertzMoveState newState) { this.state = newState; if(this.state is FinishZertzMoveState) { this.zertzGame.FinishTurn(); //EVENTS this.perform_ChangeState(0x00); this.state = new StartZertzMoveState(this); } }