12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef _CARDCHARSELECT_
- #define _CARDCHARSELECT_
- #include <vector>
- #include "card.h"
- #include "brick.h"
- #include "bar.h"
- #include "string3d.h"
- #include "anim.h"
- class CardCharSelect: public Card
- {
- public:
- //Card's lifecycle
- CardCharSelect(char gIsSurvival);
- void input(unsigned char key, bool pressed);
- void update();
- void draw();
- private:
- //Bricks
- std::vector<Brick> brick;
- //Selection
- unsigned char prevSel, selection;
- Animation sAnim;
- //Font
- string3d font;
- //Bars
- Bar health, speed, damage;
- //Bar special;
- //Characters stats
- std::vector<unsigned char> vecHp, vecSp;
- //Apply stats of current selection to bars
- void statsToBars();
- //Data to pass on
- char isSurvival;
- };
- #endif
|