Initial publish

Dependencies:   mbed

Fork of el17dg by Dmitrijs Griskovs

game/gameobject.h

Committer:
Noximilien
Date:
2019-04-08
Revision:
27:f05f4e738ba9
Parent:
26:676874c42883
Child:
28:35af3843de8f

File content as of revision 27:f05f4e738ba9:

#ifndef GAMEOBJECT_H
#define GAMEOBJECT_H

#include "geometry.h"


class GameObject {
public:
/**This function assigns the position to the  obejsts (sprites)
  */
    void spawn(Point spawn_pos) {
        pos = spawn_pos;
        active = true;
    }
    Point pos;
    bool active;
};

#endif