Space Fighter
A "shmup" game for Computer Programming C++
Loading...
Searching...
No Matches
BioEnemyShip.h
Go to the documentation of this file.
1
2#pragma once
3
4#include "EnemyShip.h"
5
7class BioEnemyShip : public EnemyShip
8{
9
10public:
11
14 virtual ~BioEnemyShip() { }
15
18 virtual void SetTexture(Texture *pTexture) { m_pTexture = pTexture; }
19
22 virtual void Update(const GameTime& gameTime);
23
26 virtual void Draw(SpriteBatch& spriteBatch);
27
28
29private:
30
31 Texture *m_pTexture = nullptr;
32
33};
Represents an enemy ship that is biological in nature.
Definition BioEnemyShip.h:8
BioEnemyShip()
Creates a new instance of BioEnemyShip.
virtual void Update(const GameTime &gameTime)
Updates the enemy ship.
virtual void SetTexture(Texture *pTexture)
Sets the texture that will be used to render the enemy ship.
virtual ~BioEnemyShip()
virtual void Draw(SpriteBatch &spriteBatch)
Draws the enemy ship.
Represents an enemy ship.
Definition EnemyShip.h:8
Contains timing values for game updates and rendering.
Definition GameTime.h:21
Enables a group of sprites to be drawn using the same settings.
Definition SpriteBatch.h:48
Represents a 2D grid of texels.
Definition Texture.h:21