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: 4DGL-uLCD-SE PinDetect mbed
Shot.cpp
00001 #include "Shot.h" 00002 00003 Shot::Shot(int x, int y, int dy, int color, uLCD_4DGL *uLCD) { 00004 init(x,y,uLCD); 00005 _dy = dy; 00006 _color = color; 00007 setRadius(1); 00008 } 00009 int Shot::getY() { 00010 return _y; 00011 } 00012 00013 int Shot::getX() { 00014 return _x; 00015 } 00016 00017 void Shot::update() { 00018 _y = _y + _dy; 00019 drawCircle(0,0,_color); 00020 }
Generated on Sun Jul 17 2022 07:39:56 by
1.7.2