Exemplo n.º 1
0
			public PlayerStats getPlayerStatsOfPlayer(Player player)
			{
				foreach (PlayerStats pStats in this.playerStatsList)
				{
					if (pStats.ownerPlayer == player)
						return pStats;
				}
				return null;
			}
Exemplo n.º 2
0
			public int getMinionsSendByPlayer(Player player)
			{
				foreach (PlayerStats pStats in this.playerStatsList)
				{
					if (pStats.ownerPlayer == player)
						return pStats.minionsSend;
				}
				
				return 0;
			}
Exemplo n.º 3
0
			public float getMoneySpendByPlayer(Player player)
			{
				foreach (PlayerStats pStats in this.playerStatsList)
				{
					if (pStats.ownerPlayer == player)
						return pStats.moneySpend;
				}
				
				return 0.0f;
			}
Exemplo n.º 4
0
			public PlayerStats(Player player)
			{
				this.ownerPlayer = player;
				
				this.minionsSend = 0;
				this.minionsKilled = 0;
				this.minionsPassed = 0;
				
				this.moneyEarned = 0.0f;
				this.moneySpend = 0.0f;
				
				this.towersBuilt = 0;

				this.income = 0;
				this.cash = 0;
			}
Exemplo n.º 5
0
			public int getCashOfPlayer(Player player)
			{
				foreach (PlayerStats pStats in this.playerStatsList)
				{
					if (pStats.ownerPlayer == player)
						return pStats.cash;
				}
				
				return 0;
			}
Exemplo n.º 6
0
			public int getIncomeOfPlayer(Player player)
			{
				foreach (PlayerStats pStats in this.playerStatsList)
				{
					if (pStats.ownerPlayer == player)
						return pStats.income;
				}
				
				return 0;
			}
Exemplo n.º 7
0
			public int getMissilesFiredByPlayer(Player player)
			{
				foreach (PlayerStats pStats in this.playerStatsList)
				{
					if (pStats.ownerPlayer == player)
						return pStats.missilesFired;
				}
				
				return 0;
			}
Exemplo n.º 8
0
			public int getTowersBuiltByPlayer(Player player)
			{
				foreach (PlayerStats pStats in this.playerStatsList)
				{
					if (pStats.ownerPlayer == player)
						return pStats.towersBuilt;
				}
				
				return 0;
			}
Exemplo n.º 9
0
 public static void setPlayerHealth(Player player, int newHealthAmount)
 {
     player.healthPoints = newHealthAmount;
     Runner.Graphics.updatePlayerHealth(player);
 }