I am learning OOP using c++ on a MicroBit by developing this simple game
gameEngine/inc/game.h
- Committer:
- ahmeou
- Date:
- 2020-07-08
- Revision:
- 0:17bdfb0e7069
File content as of revision 0:17bdfb0e7069:
#ifndef GAME_H #define GAME_H class Sprite{ private: int m_x; int m_y; public: Sprite(); Sprite(int x, int y); int getX(); int getY(); void setX(int x); void setY(int y); bool hitBy(Sprite another); }; #include "Bullet.h" #include "Spacecraft.h" #endif