#ifndef _MINIMAP_H_ #define _MINIMAP_H_ #include "texturemap.h" #include #include class minimap { public: minimap(); virtual ~minimap(); bool Init(char *mapfilename, char *maskfilename); void DrawMap(int windowwidth, int windowheight, float p1x, float p1y, float p2x, float p2y, int numplayers);//the p variables are the fraction across the level the player is at. for example, if the course is 64x64 and player 1 is at x=27.5,y=13, then p1x=27.5/64 and p1y=13/64. make them -1 if the player does not exist //numplayers- the change in aspect ratio is a hack-for some reason when there's 2 players the minimap gets squished, so we extend it private: TextureMap MapTexture; TextureMap MaskTexture; }; #endif