add more pokemon class functions

This commit is contained in:
2025-04-07 20:22:34 -04:00
parent 54f64226e1
commit 8a8b6c73bb
4 changed files with 71 additions and 3 deletions
+9 -1
View File
@@ -10,14 +10,22 @@ class Pokemon {
public:
string name;
int id;
olc::vi2d worldPos;
Pokemon(int id, string name);
Pokemon(int id, string name, olc::vi2d worldPos);
void drawPokemon(int id);
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;