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
Objects/Object.h
- Committer:
- el19tb
- Date:
- 2020-05-16
- Revision:
- 32:84e79aa7858c
- Parent:
- 31:70521f37e004
- Child:
- 38:a6e040bf0e35
File content as of revision 32:84e79aa7858c:
#ifndef OBJECT_H
#define OBJECT_H
// holds information about object
struct ObjectInfo
{
float x; // x pos
int y; // y pos
int dir; // direction of object
char c; // type of object
};
// keeps track of functions related to Objects
class Object
{
public:
Object();
int slow;
int medium;
int fast;
int row;
int screenWidth;
int screenHeight;
ObjectInfo object;
public:
void setRow(int row);
void setSeperation(int seperation);
void setSprite(char type);
};
#endif