Exemple #1
0
    //note - not doing the continuous one - highly likely not going to be using that
    public string AddAction(ActionInformation.AgentState state, int dir)
    {
        string ret = "";

        switch (mv.controlType)
        {
        case MovementType.ControlType.DiscreteQueued:
            disQueuedMovement.AddAction(state, dir);
            break;

        case MovementType.ControlType.Discrete:
            discreteMovement.AddAction(state, dir);
            break;

        case MovementType.ControlType.HexQueued:
            hexQueuedMovement.AddAction(state, dir);
            break;

        case MovementType.ControlType.HexToHex:
            hexhexControl.AddAction(state, dir);
            break;

        case MovementType.ControlType.TurnBased:
            turnControl.AddAction(state, dir);
            break;

        case MovementType.ControlType.Simulated:
            ret = simulatedControl.DoAction(state, dir);
            break;
        }
        return(ret);
    }