ELEC2645 (2016/17) / Mbed 2 deprecated 2645_Project_el15as

Dependencies:   mbed

GameObject/GameObject.h

Committer:
el15as
Date:
2017-04-19
Revision:
2:8c5c47b2372d

File content as of revision 2:8c5c47b2372d:

#ifndef GAMEOBJECT_H
#define GAMEOBJECT_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"

class GameObject
{

public:

    GameObject();
    ~GameObject();

    int type; // 0 - Platform, 1 - Spike
    intVector2D position; // top left corner
    int width;
    int height;

    bool containsPoint(int x, int y);

private:

    bool containsX(int _x);
    bool containsY(int _y);

};
#endif