Nemesis game, rocket

Embed: (wiki syntax)

« Back to documentation index

Rocket Class Reference

Rocket Class Reference

Rocket Class. More...

#include <Rocket.h>

Public Member Functions

 Rocket ()
 Constructors and destructors:
void init (int x, int y)
 Initialize Rocket.
void draw (N5110 &lcd)
 Draw Rocket.

Detailed Description

Rocket Class.

Used for generating the rocket (first weapon type) in the Nemesis game. Includes drawing functions. Incorporates N5110.h file by Craig A. Evans.

Revision 1.0

Author:
Musallam M. M. Bseiso
Date:
3rd May 2017

Definition at line 20 of file Rocket.h.


Constructor & Destructor Documentation

Rocket (  )

Constructors and destructors:

Definition at line 3 of file Rocket.cpp.


Member Function Documentation

void draw ( N5110 &  lcd )

Draw Rocket.

Draws the rocket onto the LCD, in accordance with the parameters initialized in the "init" method.

Parameters:
N5110- nokia LCD library
lcd- pointer to nokia LCD library

Definition at line 23 of file Rocket.cpp.

void init ( int  x,
int  y 
)

Initialize Rocket.

Initializes rocket x & y positions.

Definition at line 14 of file Rocket.cpp.