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.
Dependencies: mbed
GameObject/GameObject.h
- Committer:
- el15as
- Date:
- 2017-04-24
- Revision:
- 4:1f7f32f3e017
- Child:
- 5:158e2951654b
File content as of revision 4:1f7f32f3e017:
#ifndef GAMEOBJECT_H
#define GAMEOBJECT_H
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
class GameObject
{
#define OBJECTCOUNT 37
public:
GameObject();
~GameObject();
int type; // 0 - Platform, 1 - Horizontal Spikes, 2 - Vertical Spikes
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