Jeffery Hurley
/
Asteroids
Simple starter skeleton for asteroids video game.
Diff: CommandShip.h
- Revision:
- 3:98aa3db6a48f
diff -r 30020ddfccf6 -r 98aa3db6a48f CommandShip.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CommandShip.h Thu Apr 01 19:10:58 2021 +0000 @@ -0,0 +1,22 @@ +#pragma once +#include <list> +#include "Sprite.h" +#include "Projectile.h" + +#define NUM_LASERS 5 + + +class CommandShip : public Sprite +{ +public: + CommandShip(); + virtual void move(); + virtual bool checkCollision(const Sprite &InSprite) {return false;} + + void rotateLeft(); // if rotating right just stop in place + void rotateRight(); // if rotating right just stop in place + void fire(); + + Projectile m_lasers[NUM_LASERS]; + +}; \ No newline at end of file