Exemple #1
0
 /*
  * Placing the new coin pile on the map
 */
 private void ParseCoinPileMessage(string[] tokens)
 {
     string[] location = tokens[0].Split(',');
     CoinPile coinPile = new CoinPile(int.Parse(location[0]), int.Parse(location[1]), int.Parse(tokens[1]), int.Parse(tokens[2]));
     GameManager.Instance.GameEngine.AddCoinPile(coinPile);
 }
Exemple #2
0
 public void AddCoinPile(CoinPile coinPile)
 {
     map[coinPile.PositionX, coinPile.PositionY] = coinPile;
     coinPiles.Add(coinPile);
 }