/src/MenuMiniMap.h

http://github.com/clintbellanger/flare · C Header · 47 lines · 19 code · 9 blank · 19 comment · 0 complexity · aab4fb7958c3f32a228a423a7b7e25f1 MD5 · raw file

  1. /*
  2. Copyright 2011 Clint Bellanger
  3. This file is part of FLARE.
  4. FLARE is free software: you can redistribute it and/or modify it under the terms
  5. of the GNU General Public License as published by the Free Software Foundation,
  6. either version 3 of the License, or (at your option) any later version.
  7. FLARE is distributed in the hope that it will be useful, but WITHOUT ANY
  8. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  9. PARTICULAR PURPOSE. See the GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License along with
  11. FLARE. If not, see http://www.gnu.org/licenses/
  12. */
  13. /**
  14. * class MenuMiniMap
  15. */
  16. #ifndef MENU_MINI_MAP_H
  17. #define MENU_MINI_MAP_H
  18. #include <SDL.h>
  19. #include "Utils.h"
  20. #include "MapCollision.h"
  21. class MenuMiniMap {
  22. private:
  23. Uint32 color_wall;
  24. Uint32 color_obst;
  25. Uint32 color_hero;
  26. Point map_center;
  27. SDL_Rect map_area;
  28. public:
  29. MenuMiniMap();
  30. ~MenuMiniMap();
  31. void render(MapCollision *collider, Point hero_pos, int map_w, int map_h);
  32. void renderIso(MapCollision *collider, Point hero_pos, int map_w, int map_h);
  33. };
  34. #endif