public void TestChooseAction() { var action = new ChooseAction(); action.Option = "text"; action.Option = new Thing(); action.Option = new Object(); action.Option = new Person(); }
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; }
public ChooseActionTest() { action = new ChooseAction(); controllerMock = new Mock <IGameController>(); playerMock = new Mock <IPlayer>(); }
public void Start() { c = gameObject.GetComponent <ChooseAction>(); }