ELEC2645 (2018/19) / Mbed 2 deprecated el17apb

Dependencies:   mbed Gamepad N5110

Embed: (wiki syntax)

« Back to documentation index

Animation Class Reference

Animation Class Reference

Animation Class. More...

#include <Animation.h>

Public Member Functions

 Animation ()
 Constructor.
 ~Animation ()
 Deconstructor.
void standing (int x, int y, N5110 &lcd)
 displays standing sprite
void runRightOne (int x, int y, N5110 &lcd)
 displays running right sprite one
void runRightTwo (int x, int y, N5110 &lcd)
 displays running right sprite two
void runLeftOne (int x, int y, N5110 &lcd)
 display running left sprite one
void runLeftTwo (int x, int y, N5110 &lcd)
 displays running left sprite two
void walkRightOne (int x, int y, N5110 &lcd)
 displays walking right sprite one
void walkRightTwo (int x, int y, N5110 &lcd)
 displays walking right sprite two
void walkRightThree (int x, int y, N5110 &lcd)
 displays walking right sprite three
void walkRightFour (int x, int y, N5110 &lcd)
 displays walking right sprite four
void walkLeftOne (int x, int y, N5110 &lcd)
 displays walking left sprite one
void walkLeftTwo (int x, int y, N5110 &lcd)
 displays walking left sprite two
void walkLeftThree (int x, int y, N5110 &lcd)
 displays walking left sprite three
void walkLeftFour (int x, int y, N5110 &lcd)
 displays walking left sprte four
void deathOne (int x, int y, N5110 &lcd)
 displays death sprite one
void deathTwo (int x, int y, N5110 &lcd)
 displays death sprite two
void deathThree (int x, int y, N5110 &lcd)
 displays death sprite three
void deathFour (int x, int y, N5110 &lcd)
 displays death sprite four
void falling (int x, int y, N5110 &lcd)
 displays falling sprite
void fallingLeft (int x, int y, N5110 &lcd)
 displays falling left sprite
void fallingRight (int x, int y, N5110 &lcd)
 displays falling right sprite
void wallclingRight (int x, int y, N5110 &lcd)
 displays wall cling right sprite
void wallclingLeft (int x, int y, N5110 &lcd)
 displays wall cling left sprite
bool pixelsDown (int x, int y, N5110 &lcd)
 checks if pixels below blockhead
bool pixelsUp (int x, int y, N5110 &lcd)
 checks if pixels above blockhead
bool pixelsLeft (int x, int y, N5110 &lcd)
 checks if pixels left of blockhead
bool pixelsRight (int x, int y, N5110 &lcd)
 checks if pixels right of blockhead

Detailed Description

Animation Class.

Class containg sprites for animating blockhead

Author:
Adam P. Baker
Date:
9 May 2019

Definition at line 13 of file Animation.h.


Constructor & Destructor Documentation

Animation (  )

Constructor.

Definition at line 4 of file Animation.cpp.

~Animation (  )

Deconstructor.

Definition at line 11 of file Animation.cpp.


Member Function Documentation

void deathFour ( int  x,
int  y,
N5110 &  lcd 
)

displays death sprite four

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 556 of file Animation.cpp.

void deathOne ( int  x,
int  y,
N5110 &  lcd 
)

displays death sprite one

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 481 of file Animation.cpp.

void deathThree ( int  x,
int  y,
N5110 &  lcd 
)

displays death sprite three

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 532 of file Animation.cpp.

void deathTwo ( int  x,
int  y,
N5110 &  lcd 
)

displays death sprite two

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 507 of file Animation.cpp.

void falling ( int  x,
int  y,
N5110 &  lcd 
)

displays falling sprite

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 356 of file Animation.cpp.

void fallingLeft ( int  x,
int  y,
N5110 &  lcd 
)

displays falling left sprite

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 381 of file Animation.cpp.

void fallingRight ( int  x,
int  y,
N5110 &  lcd 
)

displays falling right sprite

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 406 of file Animation.cpp.

bool pixelsDown ( int  x,
int  y,
N5110 &  lcd 
)

checks if pixels below blockhead

Parameters:
xcordinate of blockhead (int)
ycordinate of blockhead (int)
N5110class which controlls lcd screen true if pixels below

Definition at line 579 of file Animation.cpp.

bool pixelsLeft ( int  x,
int  y,
N5110 &  lcd 
)

checks if pixels left of blockhead

Parameters:
xcordinate of blockhead (int)
ycordinate of blockhead (int)
N5110class which controlls lcd screen true if pixels left

Definition at line 604 of file Animation.cpp.

bool pixelsRight ( int  x,
int  y,
N5110 &  lcd 
)

checks if pixels right of blockhead

Parameters:
xcordinate of blockhead (int)
ycordinate of blockhead (int)
N5110class which controlls lcd screen true if pixels right

Definition at line 616 of file Animation.cpp.

bool pixelsUp ( int  x,
int  y,
N5110 &  lcd 
)

checks if pixels above blockhead

Parameters:
xcordinate of blockhead (int)
ycordinate of blockhead (int)
N5110class which controlls lcd screen true if pixels above

Definition at line 592 of file Animation.cpp.

void runLeftOne ( int  x,
int  y,
N5110 &  lcd 
)

display running left sprite one

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 96 of file Animation.cpp.

void runLeftTwo ( int  x,
int  y,
N5110 &  lcd 
)

displays running left sprite two

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 122 of file Animation.cpp.

void runRightOne ( int  x,
int  y,
N5110 &  lcd 
)

displays running right sprite one

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 44 of file Animation.cpp.

void runRightTwo ( int  x,
int  y,
N5110 &  lcd 
)

displays running right sprite two

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 70 of file Animation.cpp.

void standing ( int  x,
int  y,
N5110 &  lcd 
)

displays standing sprite

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 18 of file Animation.cpp.

void walkLeftFour ( int  x,
int  y,
N5110 &  lcd 
)

displays walking left sprte four

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 330 of file Animation.cpp.

void walkLeftOne ( int  x,
int  y,
N5110 &  lcd 
)

displays walking left sprite one

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 252 of file Animation.cpp.

void walkLeftThree ( int  x,
int  y,
N5110 &  lcd 
)

displays walking left sprite three

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 304 of file Animation.cpp.

void walkLeftTwo ( int  x,
int  y,
N5110 &  lcd 
)

displays walking left sprite two

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 278 of file Animation.cpp.

void walkRightFour ( int  x,
int  y,
N5110 &  lcd 
)

displays walking right sprite four

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 226 of file Animation.cpp.

void walkRightOne ( int  x,
int  y,
N5110 &  lcd 
)

displays walking right sprite one

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 148 of file Animation.cpp.

void walkRightThree ( int  x,
int  y,
N5110 &  lcd 
)

displays walking right sprite three

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 200 of file Animation.cpp.

void walkRightTwo ( int  x,
int  y,
N5110 &  lcd 
)

displays walking right sprite two

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 174 of file Animation.cpp.

void wallclingLeft ( int  x,
int  y,
N5110 &  lcd 
)

displays wall cling left sprite

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 431 of file Animation.cpp.

void wallclingRight ( int  x,
int  y,
N5110 &  lcd 
)

displays wall cling right sprite

Parameters:
xcordinate of sprite position (int)
ycordinate of sprite position (int)
N5110class which controlls lcd screen

Definition at line 456 of file Animation.cpp.