Exemplo n.º 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;
        }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 //Player list modifications
 public void addPlayer(PlayerData newPlayer)
 {
     unindexedPlayers.Add(newPlayer);
 }