cardStageSelect.h 587 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef _CARDSTAGESELECT_
  2. #define _CARDSTAGESELECT_
  3. #include "card.h"
  4. #include "mesh.h"
  5. #include "string3d.h"
  6. #include "anim.h"
  7. //Shows a brick on the center and rotates
  8. class CardStageSelect: public Card
  9. {
  10. public:
  11. //Card lifecycle
  12. CardStageSelect(char gIsSurvival, int gp1, int gp2);
  13. void input(unsigned char key, bool pressed);
  14. void update();
  15. void draw();
  16. private:
  17. //Stages
  18. std::vector<Mesh> stages;
  19. //Previous and current selection
  20. unsigned int prevSel, selection;
  21. //Selection animation
  22. Animation sAnim;
  23. //Data to pass on
  24. char isSurvival;
  25. int p1, p2;
  26. };
  27. #endif