ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19tb

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