123456789101112131415161718192021222324252627282930313233343536 |
- #ifndef _CARDSTAGESELECT_
- #define _CARDSTAGESELECT_
- #include "card.h"
- #include "mesh.h"
- #include "string3d.h"
- #include "anim.h"
- //Shows a brick on the center and rotates
- class CardStageSelect: public Card
- {
- public:
- //Card lifecycle
- CardStageSelect(char gIsSurvival, int gp1, int gp2);
- void input(unsigned char key, bool pressed);
- void update();
- void draw();
- private:
- //Stages
- std::vector<Mesh> stages;
- //Previous and current selection
- unsigned int prevSel, selection;
- //Selection animation
- Animation sAnim;
- //Data to pass on
- char isSurvival;
- int p1, p2;
- };
- #endif
|