/src/MenuMiniMap.h
http://github.com/clintbellanger/flare · C Header · 47 lines · 19 code · 9 blank · 19 comment · 0 complexity · aab4fb7958c3f32a228a423a7b7e25f1 MD5 · raw file
- /*
- Copyright 2011 Clint Bellanger
- This file is part of FLARE.
- FLARE is free software: you can redistribute it and/or modify it under the terms
- of the GNU General Public License as published by the Free Software Foundation,
- either version 3 of the License, or (at your option) any later version.
- FLARE is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
- PARTICULAR PURPOSE. See the GNU General Public License for more details.
- You should have received a copy of the GNU General Public License along with
- FLARE. If not, see http://www.gnu.org/licenses/
- */
- /**
- * class MenuMiniMap
- */
- #ifndef MENU_MINI_MAP_H
- #define MENU_MINI_MAP_H
- #include <SDL.h>
- #include "Utils.h"
- #include "MapCollision.h"
- class MenuMiniMap {
- private:
- Uint32 color_wall;
- Uint32 color_obst;
- Uint32 color_hero;
- Point map_center;
- SDL_Rect map_area;
- public:
- MenuMiniMap();
- ~MenuMiniMap();
- void render(MapCollision *collider, Point hero_pos, int map_w, int map_h);
- void renderIso(MapCollision *collider, Point hero_pos, int map_w, int map_h);
- };
- #endif