예제 #1
0
        public void TestChooseAction()
        {
            var action = new ChooseAction();

            action.Option = "text";
            action.Option = new Thing();
            action.Option = new Object();
            action.Option = new Person();
        }
예제 #2
0
        private static Random random = new Random();  // Random number generator to make the dice appear more random

        public CombatTurnBased(LunchHourGames lhg, CombatSystem combatSystem)
        {
            this.lhg          = lhg;
            this.combatSystem = combatSystem;

            this.chooseAction  = new ChooseAction(lhg, combatSystem, this);
            this.moveAction    = new MoveAction(lhg, combatSystem, this);
            this.attackAction  = new AttackAction(lhg, combatSystem, this);
            this.useAction     = new UseAction(lhg, combatSystem, this);
            this.defendAction  = new DefendAction(lhg, combatSystem, this);
            this.endTurnAction = new EndTurnAction(lhg, combatSystem, this);

            currentAction = null;
            nextAction    = null;
        }
예제 #3
0
 public ChooseActionTest()
 {
     action         = new ChooseAction();
     controllerMock = new Mock <IGameController>();
     playerMock     = new Mock <IPlayer>();
 }
예제 #4
0
 public void Start()
 {
     c = gameObject.GetComponent <ChooseAction>();
 }