obstacles for the map
Embed:
(wiki syntax)
Show/hide line numbers
Column.h
00001 #ifndef Column_H 00002 #define Column_H 00003 00004 #include "mbed.h" 00005 #include "N5110.h" 00006 #include "Gamepad.h" 00007 00008 /** Column.h 00009 @brief This library handles a circular type of obstacle. 00010 */ 00011 class Column 00012 { 00013 private: 00014 00015 // Variables 00016 int _posX; 00017 int _posY; 00018 int _radius; 00019 int _scenePosX; 00020 int _scenePosY; 00021 00022 public: 00023 00024 /** 00025 * Class constructor 00026 */ 00027 Column(); 00028 00029 /** 00030 * Class destructor 00031 */ 00032 ~Column(); 00033 00034 /** 00035 * Getter for the the absolute X cohordinate 00036 */ 00037 int getPosX(); 00038 00039 /** 00040 * Getter for the the absolute Y cohordinate 00041 */ 00042 int getPosY(); 00043 00044 /** 00045 * Getter for the the radius of the column object 00046 */ 00047 int getRadius(); 00048 00049 /** 00050 * Getter for the the X cohordinate relative to the screen 00051 */ 00052 int getScenePosX(); 00053 00054 /** 00055 * Getter for the the Y cohordinate relative to the screen 00056 */ 00057 int getScenePosY(); 00058 00059 /** Setter for the the X cohordinate relative to the screen 00060 * 00061 * @param x X cohordinate relative to the screens 00062 * 00063 */ 00064 void setScenePosX(int x); 00065 00066 /** Setter for the the Y cohordinate relative to the screen 00067 * 00068 * @param y Y cohordinate relative to the screens 00069 * 00070 */ 00071 void setScenePosY(int y); 00072 00073 /** initialise the column object 00074 * 00075 * @param x Absolute X cohordinate 00076 * @param y Absolute y cohordinate 00077 * @param radius Radius of the column object 00078 * 00079 */ 00080 void init(int x, 00081 int y, 00082 int radius); 00083 void draw(N5110 &lcd); 00084 }; 00085 00086 #endif
Generated on Sun Jul 31 2022 04:53:13 by
1.7.2