add comments and cleanup functions

This commit is contained in:
2025-04-07 21:16:53 -04:00
parent 67ba6abf16
commit 6fe5f41fd0
5 changed files with 45 additions and 69 deletions
+2 -12
View File
@@ -13,21 +13,11 @@ public:
olc::vi2d worldPos;
Pokemon(int id, string name);
Pokemon(int id, string name, olc::vi2d worldPos);
void drawPokemon(olc::PixelGameEngine *pge, olc::Sprite *pokemonSprite, olc::vi2d worldPos);
void drawPokemon(olc::PixelGameEngine *pge, olc::Sprite *pokemonSprite, float tileOffsetX, float tileOffsetY);
void drawPokemon(olc::PixelGameEngine *pge, olc::Sprite *pokemonSprite, int &tileX, int &tileY);
void drawPokemon(string name);
void draw(olc::PixelGameEngine *pge, olc::Sprite *pokemonSprite, int nOffsetX, int nOffsetY, float tileOffsetX, float tileOffsetY);
int getRandomPokemonId();
int getID(string name);
int getName(int it);
olc::vi2d getCoordinate();
};
extern vector<Pokemon> allPokemon;
//global vector of 151 pokemon
extern const vector<Pokemon> allPokemon;
#endif