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: mbed Gamepad N5110
Animation Class Reference
#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
- 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class which controlls lcd screen
Definition at line 507 of file Animation.cpp.
void falling | ( | int | x, |
int | y, | ||
N5110 & | lcd | ||
) |
displays falling sprite
- Parameters:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of blockhead (int) y cordinate of blockhead (int) N5110 class 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:
-
x cordinate of blockhead (int) y cordinate of blockhead (int) N5110 class 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:
-
x cordinate of blockhead (int) y cordinate of blockhead (int) N5110 class 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:
-
x cordinate of blockhead (int) y cordinate of blockhead (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class which controlls lcd screen
Definition at line 70 of file Animation.cpp.
void standing | ( | int | x, |
int | y, | ||
N5110 & | lcd | ||
) |
displays standing sprite
- Parameters:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class 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:
-
x cordinate of sprite position (int) y cordinate of sprite position (int) N5110 class which controlls lcd screen
Definition at line 456 of file Animation.cpp.
Generated on Fri Jul 15 2022 00:42:15 by
