コード例 #1
0
        public ActionResult MakeForcedDecision(Agent agent, SpecificActionType action, int argument = -1)
        {
            switch (action)
            {
            case SpecificActionType.GiveInfo:
                return(agent.GiveInfo(argument));

            case SpecificActionType.PickUp:
                return(agent.PickUp());

            default:
                return(MakeDecision(agent));
            }
        }
コード例 #2
0
 public ActionResult MakeForcedDecision(Agent agent, SpecificActionType action, int argument = -1)
 {
     return(ActionResult.Continue);
 }
コード例 #3
0
ファイル: Agent.cs プロジェクト: szymon159/project-game
 public ActionResult MakeForcedDecision(SpecificActionType action, int argument = -1)
 {
     return(strategy.MakeForcedDecision(this, action, argument));
 }