public bananaShot(Player player) : base(player) { projectileImageString = "Projectile-banana.png"; projectileType = "Banana slice"; seconds = 5.0f; speed = 5f; }
public grapeShot(Player player) : base(player) { projectileImageString = "Projectile-grape.png"; projectileType = "Grape slice"; seconds = 5.0f; speed = 5f; }
public fruitShot(Player player) { this.player = player; }
public strawberryShot(Player player) : base(player) { projectileImageString = "Projectile-strawberry.png"; projectileType = "Strawberry slice"; seconds = 5.0f; speed = 5f; }
public pearShot(Player player) : base(player) { projectileImageString = "Projectile-pear.png"; projectileType = "Pear slice"; seconds = 5.0f; speed = 5f; }
private Player createPlayer(Texture2D playerImage, int x, int y, float movementSpeed, float rotateSpeed, Vector2 healthBarLocation, Input playerInput) { playerAmount++; System.Diagnostics.Debug.WriteLine("Making a player: " + playerAmount); TextureObj playerObj = new TextureObj(playerAmount, playerImage, new Vector2(x, y), new Rectangle(0, 0, playerImage.Width, playerImage.Height), Color.White, 0, new Vector2(playerImage.Width / 2, playerImage.Height / 2), 1.0f, SpriteEffects.None, 1, "Player"); addAsActive(playerObj); Player newPlayer = new Player(playerAmount, playerObj, movementSpeed, rotateSpeed, healthBarLocation, playerInput); playerList.Add(newPlayer); return newPlayer; }
public static void removeAsPlayer(Player player) { toRemovePlayers.Add(player); changeInPlayers = true; changeInLists = true; }
public static void addAsPlayer(Player player) { toAddPlayers.Add(player); changeInPlayers = true; changeInLists = true; }