I am learning OOP using c++ on a MicroBit by developing this simple game

Dependencies:   microbit

Committer:
ahmeou
Date:
Thu Jul 09 06:04:17 2020 +0000
Revision:
3:a21366e3261e
Parent:
1:25f13b341b11

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ahmeou 0:17bdfb0e7069 1 #ifndef SPACECRAFT_H
ahmeou 0:17bdfb0e7069 2 #define SPACECRAFT_H
ahmeou 1:25f13b341b11 3 #include "Sprite.h"
ahmeou 0:17bdfb0e7069 4
ahmeou 0:17bdfb0e7069 5 class Spacecraft: public Sprite{
ahmeou 0:17bdfb0e7069 6 private:
ahmeou 0:17bdfb0e7069 7 bool blinking;
ahmeou 0:17bdfb0e7069 8
ahmeou 0:17bdfb0e7069 9 public:
ahmeou 0:17bdfb0e7069 10 Spacecraft();
ahmeou 0:17bdfb0e7069 11 void moveLeft();
ahmeou 0:17bdfb0e7069 12 void moveRight();
ahmeou 0:17bdfb0e7069 13 bool isBlinking();
ahmeou 0:17bdfb0e7069 14 void blink();
ahmeou 0:17bdfb0e7069 15 };
ahmeou 0:17bdfb0e7069 16 #endif