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; }
public void removePlayer(PlayerData player) { if (player == null) return; if (unindexedPlayers.Contains(player)) unindexedPlayers.Remove(player); else playerList[player.index] = null; playerCountDirty = true; }
//Player list modifications public void addPlayer(PlayerData newPlayer) { unindexedPlayers.Add(newPlayer); }