Nemesis game, rocket

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Rocket.cpp Source File

Rocket.cpp

00001 #include "Rocket.h"
00002 
00003 Rocket::Rocket()
00004 {
00005 }
00006 
00007 Rocket::~Rocket()
00008 {
00009 }
00010 
00011 
00012 // Initializion method:
00013 
00014 void Rocket::init(int x, int y)
00015 {   
00016     _x = x;     // X and y coordinates input when method is used.
00017     _y = y;
00018 }
00019 
00020 
00021 // Draws rocket onto LCD:
00022 
00023 void Rocket::draw(N5110 &lcd)
00024 {
00025     lcd.drawLine(_x,_y,_x+78,_y,1);
00026     lcd.drawLine(_x,_y-1,_x+78,_y,1);
00027 }