Esempio n. 1
0
        public Player GetPlayer(string guid, ulong id, TeamColour tc, ActionType action, IPlayerController controller = null)
        {
            controller = new PlayerControllerMock();
            var player = new Player(tc, _guid: guid);

            player.ID = id;
            player.LastActionTaken = action;
            player.Controller      = controller;
            controller.Player      = player;
            player.myTeam          = new List <GameArea.GameObjects.Player>();
            player.otherTeam       = new List <GameArea.GameObjects.Player>();

            return(player);
        }
Esempio n. 2
0
        public Leader GetLeader(string guid, ulong id, TeamColour tc, ActionType action, IPlayerController controller = null)
        {
            controller = new PlayerControllerMock();
            var leader = new Leader(tc, PlayerRole.leader, guid: guid)
            {
                ID = id,
                LastActionTaken = action,
                Controller      = controller,
                State           = AgentState.Playing
            };

            controller.Player = leader;
            leader.myTeam     = new List <GameArea.GameObjects.Player>();
            leader.otherTeam  = new List <GameArea.GameObjects.Player>();

            return(leader);
        }