Character Animation and Movement controller

Committer:
rottenegg
Date:
Wed Apr 17 05:10:11 2019 +0000
Revision:
0:8fa72895d335
First Build with collision detection and controls animation modes when moving. It hold internal declaration for Analog Pins

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rottenegg 0:8fa72895d335 1 #ifndef CAMOVE_H
rottenegg 0:8fa72895d335 2 #define CAMOVE_H
rottenegg 0:8fa72895d335 3
rottenegg 0:8fa72895d335 4 #include "mbed.h"
rottenegg 0:8fa72895d335 5 #include "N5110.h"
rottenegg 0:8fa72895d335 6
rottenegg 0:8fa72895d335 7 class N5110;
rottenegg 0:8fa72895d335 8
rottenegg 0:8fa72895d335 9 class CaMove {
rottenegg 0:8fa72895d335 10
rottenegg 0:8fa72895d335 11 public:
rottenegg 0:8fa72895d335 12 void CMinit();
rottenegg 0:8fa72895d335 13 void CMmove(N5110 &lcd);
rottenegg 0:8fa72895d335 14 int get_x();
rottenegg 0:8fa72895d335 15 int get_y();
rottenegg 0:8fa72895d335 16 short int get_itr();
rottenegg 0:8fa72895d335 17 short int get_mvp();
rottenegg 0:8fa72895d335 18
rottenegg 0:8fa72895d335 19
rottenegg 0:8fa72895d335 20 private:
rottenegg 0:8fa72895d335 21 short int mvp;
rottenegg 0:8fa72895d335 22 int _h;
rottenegg 0:8fa72895d335 23 int _v;
rottenegg 0:8fa72895d335 24 short int _itr;
rottenegg 0:8fa72895d335 25
rottenegg 0:8fa72895d335 26 };
rottenegg 0:8fa72895d335 27
rottenegg 0:8fa72895d335 28 #endif