Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: gameEngine/inc/Spacecraft.h
- Revision:
- 0:17bdfb0e7069
- Child:
- 1:25f13b341b11
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gameEngine/inc/Spacecraft.h Wed Jul 08 16:35:55 2020 +0000
@@ -0,0 +1,16 @@
+#ifndef SPACECRAFT_H
+#define SPACECRAFT_H
+#include "game.h"
+
+class Spacecraft: public Sprite{
+ private:
+ bool blinking;
+
+ public:
+ Spacecraft();
+ void moveLeft();
+ void moveRight();
+ bool isBlinking();
+ void blink();
+};
+#endif
\ No newline at end of file