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 N5110 ShiftReg PinDetect
Entity.h
- Committer:
- Siriagus
- Date:
- 2015-05-03
- Revision:
- 9:da608ae65df9
- Child:
- 11:adb68da98262
File content as of revision 9:da608ae65df9:
#ifndef ENTITY_H #define ENTITY_H class Entity { public: Entity() {x = y = width = height = vx = vy = 0; goingLeft = true;} Entity(int x, int y, int w, int h) : x(x), y(y), width(w), height(h) {vx = vy = 0; goingLeft = true;} int x, y; int vx, vy; // Velocity x and y int width; int height; bool goingLeft; // Direction of entity can be left or right }; #endif