Initial publish
Dependencies: mbed
Fork of el17dg by
game/gameobject.h
- Committer:
- Noximilien
- Date:
- 2019-05-07
- Revision:
- 40:e3bbda7444fa
- Parent:
- 37:6a2bf4488022
File content as of revision 40:e3bbda7444fa:
#ifndef GAMEOBJECT_H #define GAMEOBJECT_H #include "collision_lib.h" ///////////////////////////////////////////////////////////////////// /** * GameObject Class * @brief Base class for all objects in the game world. * @author Dmitrijs Griskovs * @date 15/04/2019 */ class GameObject { public: /** * @brief Activates the object at the given postion. * @param spawn_pos sets position of x and y into pos (Point). */ void spawn(Point spawn_pos) { pos = spawn_pos; active = true; } Point pos; bool active; }; #endif