Exemplo n.º 1
0
    public void TestFailMove()
    {
        monster.SetActive(true);
        bool executed = randomMove.Execute(monster);

        Assert.AreEqual(false, executed);
    }
Exemplo n.º 2
0
 public ActionResult PlayerTakeAction(EntityAction action)
 {
     if (playerTookActionThisTick)
     {
         return(ActionResult.IGNORED);                          //Already took an action this tick - ignore action request.
     }
     playerTookActionThisTick = true;
     return(action.Execute() ? ActionResult.SUCCESS : ActionResult.FAILED);
 }
Exemplo n.º 3
0
    public void TestFailMove()
    {
        bool executed = playerMove.Execute(player);

        Assert.AreEqual(false, executed);
    }