Josh Baldwin / Mbed 2 deprecated Dance_Maniax

Dependencies:   4DGL-uLCD-SE DebounceIn PinDetect SDFileSystem mbed-rtos mbed wave_player

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers orb_public.h Source File

orb_public.h

00001 #ifndef ORB_PUBLIC_H
00002 #define ORB_PUBLIC_H
00003 #include <mbed.h>
00004 #include "orb_public.h"
00005 
00006 ///The orb status
00007 typedef enum {
00008     ORB_ACTIVE=1,///<orb is active
00009     ORB_DEACTIVE=0///<orb is no longer active
00010 } ORB_STATUS;
00011 
00012 typedef struct {
00013     int x;                   ///< The x-coordinate of missile current position
00014     int y;                   ///< The y-coordinate of missile current position
00015     int tick;
00016     bool b;
00017     ORB_STATUS status;   ///< The missile status, see MISSILE_STATUS
00018 } ORB;
00019 
00020 class orb_public {
00021 public:
00022     //void orb_setup();
00023     //void orb_create();
00024     //void orb_update_position();
00025     //void orb_generator();
00026     
00027     orb_public();
00028     orb_public(int x, int y);
00029     int get_posX();
00030     int get_posY();
00031     void set_posX(int x);
00032     void set_posY(int y);
00033     bool get_b();
00034     ORB_STATUS get_status();
00035 private:
00036     int x_pos;
00037     int y_pos;
00038     bool b;
00039     ORB_STATUS status;
00040 };
00041 
00042 
00043 #define MAX_NUM_ORB  2
00044 
00045 
00046 #endif