protected TiledSprite(Texture2D texture, Tile tile, Color color, MonoBomberGame game) { this.texture = texture; this.color = color; this.game = game; this.tile = tile ?? throw new ArgumentNullException(); }
protected FreeMovingSprite(Texture2D texture, Vector2 pos, Color color, MonoBomberGame game) { this.texture = texture; this.pos = pos; this.color = color; this.game = game; }
public Human(Vector2 pos, Color color, Keys up, Keys left, Keys down, Keys right, Keys bomb, MonoBomberGame game) : base(pos, color, game) { // bombs this.bombCooldownLeft = 0; this.health = BASE_HEALTH; this.deaths = 0; // keys this.upKey = up; this.leftKey = left; this.downKey = down; this.rightKey = right; this.bombKey = bomb; }
public Bot(Vector2 pos, Color color, Human opponent, MonoBomberGame game) : base(pos, color, game) { this.opponent = opponent; }