ELEC2645 (2018/19) / Mbed 2 deprecated el17apb

Dependencies:   mbed Gamepad N5110

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Animation.h Source File

Animation.h

00001 #ifndef ANIMATION_H
00002 #define ANIMATION_H
00003 
00004 #include "mbed.h"
00005 #include "Gamepad.h"
00006 #include "N5110.h"
00007 
00008 /** Animation Class
00009  * @brief Class containg sprites for animating blockhead
00010  * @author Adam P. Baker
00011  * @date 9 May 2019
00012  */
00013 class Animation
00014 {
00015 public:
00016     /** Constructor */
00017     Animation();
00018     
00019     /** Deconstructor */
00020     ~Animation();
00021     
00022     /** displays standing sprite
00023     *@param x cordinate of sprite position (int)
00024     *@param y cordinate of sprite position (int)
00025     *@param N5110 class which controlls lcd screen
00026     */
00027     void standing(int x, int y, N5110 &lcd);
00028     
00029     /** displays running right sprite one
00030     *@param x cordinate of sprite position (int)
00031     *@param y cordinate of sprite position (int)
00032     *@param N5110 class which controlls lcd screen
00033     */
00034     void runRightOne(int x, int y, N5110 &lcd);
00035     
00036     /** displays running right sprite two
00037     *@param x cordinate of sprite position (int)
00038     *@param y cordinate of sprite position (int)
00039     *@param N5110 class which controlls lcd screen
00040     */
00041     void runRightTwo(int x, int y, N5110 &lcd);
00042     
00043     /** display running left sprite one
00044     *@param x cordinate of sprite position (int)
00045     *@param y cordinate of sprite position (int)
00046     *@param N5110 class which controlls lcd screen
00047     */
00048     void runLeftOne(int x, int y, N5110 &lcd);
00049     
00050     /** displays running left sprite two
00051     *@param x cordinate of sprite position (int)
00052     *@param y cordinate of sprite position (int)
00053     *@param N5110 class which controlls lcd screen
00054     */
00055     void runLeftTwo(int x, int y, N5110 &lcd);
00056     
00057     /** displays walking right sprite one
00058     *@param x cordinate of sprite position (int)
00059     *@param y cordinate of sprite position (int)
00060     *@param N5110 class which controlls lcd screen
00061     */
00062     void walkRightOne(int x, int y, N5110 &lcd);
00063     
00064     /** displays walking right sprite two
00065     *@param x cordinate of sprite position (int)
00066     *@param y cordinate of sprite position (int)
00067     *@param N5110 class which controlls lcd screen
00068     */
00069     void walkRightTwo(int x, int y, N5110 &lcd);
00070     
00071     /** displays walking right sprite three
00072     *@param x cordinate of sprite position (int)
00073     *@param y cordinate of sprite position (int)
00074     *@param N5110 class which controlls lcd screen
00075     */
00076     void walkRightThree(int x, int y, N5110 &lcd);
00077     
00078     /** displays walking right sprite four
00079     *@param x cordinate of sprite position (int)
00080     *@param y cordinate of sprite position (int)
00081     *@param N5110 class which controlls lcd screen
00082     */
00083     void walkRightFour(int x, int y, N5110 &lcd);
00084 
00085     /** displays walking left sprite one
00086     *@param x cordinate of sprite position (int)
00087     *@param y cordinate of sprite position (int)
00088     *@param N5110 class which controlls lcd screen
00089     */
00090     void walkLeftOne(int x, int y, N5110 &lcd);
00091     
00092     /** displays walking left sprite two
00093     *@param x cordinate of sprite position (int)
00094     *@param y cordinate of sprite position (int)
00095     *@param N5110 class which controlls lcd screen
00096     */
00097     void walkLeftTwo(int x, int y, N5110 &lcd);
00098     
00099     /** displays walking left sprite three
00100     *@param x cordinate of sprite position (int)
00101     *@param y cordinate of sprite position (int)
00102     *@param N5110 class which controlls lcd screen
00103     */
00104     void walkLeftThree(int x, int y, N5110 &lcd);
00105     
00106     /** displays walking left sprte four
00107     *@param x cordinate of sprite position (int)
00108     *@param y cordinate of sprite position (int)
00109     *@param N5110 class which controlls lcd screen
00110     */
00111     void walkLeftFour(int x, int y, N5110 &lcd);
00112 
00113     /** displays death sprite one
00114     *@param x cordinate of sprite position (int)
00115     *@param y cordinate of sprite position (int)
00116     *@param N5110 class which controlls lcd screen
00117     */
00118     void deathOne(int x, int y, N5110 &lcd);
00119     
00120     /** displays death sprite two
00121     *@param x cordinate of sprite position (int)
00122     *@param y cordinate of sprite position (int)
00123     *@param N5110 class which controlls lcd screen
00124     */
00125     void deathTwo(int x, int y, N5110 &lcd);
00126     
00127     /** displays death sprite three
00128     *@param x cordinate of sprite position (int)
00129     *@param y cordinate of sprite position (int)
00130     *@param N5110 class which controlls lcd screen
00131     */
00132     void deathThree(int x, int y, N5110 &lcd);
00133     
00134     /** displays death sprite four
00135     *@param x cordinate of sprite position (int)
00136     *@param y cordinate of sprite position (int)
00137     *@param N5110 class which controlls lcd screen
00138     */
00139     void deathFour(int x, int y, N5110 &lcd);
00140     
00141     /** displays falling sprite
00142     *@param x cordinate of sprite position (int)
00143     *@param y cordinate of sprite position (int)
00144     *@param N5110 class which controlls lcd screen
00145     */
00146     void falling(int x, int y, N5110 &lcd);
00147     
00148     /** displays falling left sprite
00149     *@param x cordinate of sprite position (int)
00150     *@param y cordinate of sprite position (int)
00151     *@param N5110 class which controlls lcd screen
00152     */
00153     void fallingLeft(int x, int y, N5110 &lcd);
00154     
00155     /** displays falling right sprite
00156     *@param x cordinate of sprite position (int)
00157     *@param y cordinate of sprite position (int)
00158     *@param N5110 class which controlls lcd screen
00159     */
00160     void fallingRight(int x, int y, N5110 &lcd);
00161     
00162     /** displays wall cling right sprite
00163     *@param x cordinate of sprite position (int)
00164     *@param y cordinate of sprite position (int)
00165     *@param N5110 class which controlls lcd screen
00166     */
00167     void wallclingRight(int x, int y, N5110 &lcd);
00168     
00169     /** displays wall cling left sprite
00170     *@param x cordinate of sprite position (int)
00171     *@param y cordinate of sprite position (int)
00172     *@param N5110 class which controlls lcd screen
00173     */
00174     void wallclingLeft(int x, int y, N5110 &lcd);
00175     
00176     /** checks if pixels below blockhead 
00177     *@param x cordinate of blockhead (int)
00178     *@param y cordinate of blockhead (int)
00179     *@param N5110 class which controlls lcd screen
00180     *@retunrs true if pixels below
00181     */
00182     bool pixelsDown(int x, int y, N5110 &lcd);
00183     
00184     /** checks if pixels above blockhead
00185     *@param x cordinate of blockhead (int)
00186     *@param y cordinate of blockhead (int)
00187     *@param N5110 class which controlls lcd screen
00188     *@retunrs true if pixels above
00189     */
00190     bool pixelsUp(int x, int y, N5110 &lcd);
00191     
00192     /** checks if pixels left of blockhead
00193     *@param x cordinate of blockhead (int)
00194     *@param y cordinate of blockhead (int)
00195     *@param N5110 class which controlls lcd screen
00196     *@retunrs true if pixels left
00197     */
00198     bool pixelsLeft(int x, int y, N5110 &lcd);
00199     
00200     /** checks if pixels right of blockhead
00201     *@param x cordinate of blockhead (int)
00202     *@param y cordinate of blockhead (int)
00203     *@param N5110 class which controlls lcd screen
00204     *@retunrs true if pixels right
00205     */
00206     bool pixelsRight(int x, int y, N5110 &lcd);
00207 
00208 private:
00209 
00210 };
00211 
00212 #endif
00213