Exemplo n.º 1
0
        protected BaseBattleState(TurnBasedFsm fsm, IGameData gameData, Configurations configurations)
        {
            Fsm            = fsm;
            GameData       = gameData;
            Configurations = configurations;

            //Subscribe game events
            GameEvents.Instance.AddListener(this);
            IsInitialized = true;
        }
Exemplo n.º 2
0
        protected TurnState(TurnBasedFsm fsm, IGameData gameData, Configurations configurations) : base(fsm, gameData,
                                                                                                        configurations)
        {
            var game = GameData.RuntimeGame;

            // get player according to the seat
            Player = game.TurnLogic.GetPlayer(Seat);

            //register turn state
            Fsm.RegisterPlayerState(Player, this);
        }
Exemplo n.º 3
0
 public StartBattleState(TurnBasedFsm fsm, IGameData gameData, Configurations configurations) :
     base(fsm, gameData, configurations)
 {
     
 }
Exemplo n.º 4
0
 public void StartBattle()
 {
     TurnBasedLogic = new TurnBasedFsm(this, Data, configurations);
     TurnBasedLogic.StartBattle();
 }
Exemplo n.º 5
0
 protected AiTurnState(TurnBasedFsm fsm, IGameData gameData, Configurations configurations) : base(fsm, gameData,
                                                                                                   configurations) => AiModule = new AiModule(Player, GameData.RuntimeGame);