35 virtual void Hit(
const float damage);
39 virtual std::string
ToString()
const {
return "Enemy Ship"; }
56 double m_delaySeconds = 0;
58 double m_activationSeconds = 0;
Represents a type of collision.
static const CollisionType Ship
static const CollisionType Enemy
Represents an enemy ship.
virtual void Fire()
Fires a weapon from the enemy ship.
virtual void Draw(SpriteBatch &spriteBatch)=0
Draws the enemy ship.
virtual void Hit(const float damage)
Applies damage to the ship.
virtual CollisionType GetCollisionType() const
Gets the collision type of the enemy ship.
virtual void Update(const GameTime &gameTime)
Loads the content for the enemy ship.
EnemyShip()
Creates a new instance of EnemyShip.
virtual double GetDelaySeconds() const
Gets the delay before the enemy ship activates, to prevent all enemy ships from activating at the sam...
virtual std::string ToString() const
Gets the string representation of the enemy ship.
Contains timing values for game updates and rendering.
Enables a group of sprites to be drawn using the same settings.
Defines a vector with 2 components (x and y).
Represents a ship in the game.
virtual void Initialize()
Initializes the ship.