Exemple #1
0
		void DefSet(BattleManager manager, bool isPlayerFirst)
		{
			turnList = new IState<BattleStateName>[3];
			var playerTurn = new PlayerTurn(manager, this);
			var rivalTurn = new RivalTurn(manager, this);
			var endTurn = new EndTurn(manager, this);

			if (isPlayerFirst)
			{
				turnList[0] = playerTurn;
				turnList[1] = rivalTurn;
				turnList[2] = endTurn;
			}
			else
			{
				turnList[0] = rivalTurn;
				turnList[1] = playerTurn;
				turnList[2] = endTurn;
			}
		}