Simple starter skeleton for asteroids video game.

Dependencies:   PinDetect

CommandShip.h

Committer:
jhurley31
Date:
2021-04-01
Revision:
5:454ff3197a74
Parent:
3:98aa3db6a48f

File content as of revision 5:454ff3197a74:

#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];

};