obstacles for the map
Embed:
(wiki syntax)
Show/hide line numbers
Column.cpp
00001 #include "Column.h" 00002 00003 // Class constructor 00004 Column::Column() 00005 { 00006 00007 } 00008 00009 // Class destructor 00010 Column::~Column() 00011 { 00012 00013 } 00014 00015 // Initialise the column object 00016 void Column::init(int x, 00017 int y, 00018 int radius) 00019 { 00020 _posX = x; 00021 _posY = y; 00022 _radius = radius; 00023 //pc.printf("a wall has been initialized"); 00024 } 00025 00026 int Column::getPosX() 00027 { 00028 return _posX; 00029 } 00030 00031 int Column::getPosY() 00032 { 00033 return _posY; 00034 } 00035 00036 int Column::getRadius() 00037 { 00038 return _radius; 00039 } 00040 00041 int Column::getScenePosX() 00042 { 00043 return _scenePosX; 00044 } 00045 00046 int Column::getScenePosY() 00047 { 00048 return _scenePosY; 00049 } 00050 00051 void Column::setScenePosX(int x) 00052 { 00053 _scenePosX = x; 00054 } 00055 00056 void Column::setScenePosY(int y) 00057 { 00058 _scenePosY = y; 00059 } 00060 00061 // Draw a circle with the dimentions 00062 // given by the inetialiser 00063 void Column::draw(N5110 &lcd) 00064 { 00065 lcd.drawCircle(_scenePosX, _scenePosY, _radius, FILL_BLACK); 00066 //pc.printf("a column has been drawn"); 00067 }
Generated on Sun Jul 31 2022 04:53:13 by
1.7.2