예제 #1
0
        public dwObject2D(PlayerData owningPlayer)
        {
            if (owningPlayer == null)
                throw new System.ArgumentNullException();

            indexer.indexObject(this);

            orderQueue = new Queue<Order>();
            position = new dwVector2(0, 0);

            owner = owningPlayer;
        }
예제 #2
0
        public void removePlayer(PlayerData player)
        {
            if (player == null)
                return;

            if (unindexedPlayers.Contains(player))
                unindexedPlayers.Remove(player);

            else
                playerList[player.index] = null;

            playerCountDirty = true;
        }
예제 #3
0
 //Player list modifications
 public void addPlayer(PlayerData newPlayer)
 {
     unindexedPlayers.Add(newPlayer);
 }