add 151 pokemon definitions

This commit is contained in:
2025-04-07 13:03:03 -04:00
parent 0aed79c992
commit d7dc458dae
3 changed files with 188 additions and 1 deletions
+162
View File
@@ -0,0 +1,162 @@
#include "Pokemon.h"
Pokemon::Pokemon(int id, string name) {
this->id = id;
this->name = name;
};
vector<Pokemon> allPokemon = {
{1, "Bulbasaur"},
{2, "Ivysaur"},
{3, "Venusaur"},
{4, "Charmander"},
{5, "Charmeleon"},
{6, "Charizard"},
{7, "Squirtle"},
{8, "Wartortle"},
{9, "Blastoise"},
{10, "Caterpie"},
{11, "Metapod"},
{12, "Butterfree"},
{13, "Weedle"},
{14, "Kakuna"},
{15, "Beedrill"},
{16, "Pidgey"},
{17, "Pidgeotto"},
{18, "Pidgeot"},
{19, "Rattata"},
{20, "Raticate"},
{21, "Spearow"},
{22, "Fearow"},
{23, "Ekans"},
{24, "Arbok"},
{25, "Pikachu"},
{26, "Raichu"},
{27, "Sandshrew"},
{28, "Sandslash"},
{29, "Nidoran"},
{30, "Nidorina"},
{31, "Nidoqueen"},
{32, "Nidoran"},
{33, "Nidorino"},
{34, "Nidoking"},
{35, "Clefairy"},
{36, "Clefable"},
{37, "Vulpix"},
{38, "Ninetales"},
{39, "Jigglypuff"},
{40, "Wigglytuff"},
{41, "Zubat"},
{42, "Golbat"},
{43, "Oddish"},
{44, "Gloom"},
{45, "Vileplume"},
{46, "Paras"},
{47, "Parasect"},
{48, "Venonat"},
{49, "Venomoth"},
{50, "Diglett"},
{51, "Dugtrio"},
{52, "Meowth"},
{53, "Persian"},
{54, "Psyduck"},
{55, "Golduck"},
{56, "Mankey"},
{57, "Primeape"},
{58, "Growlithe"},
{59, "Arcanine"},
{60, "Poliwag"},
{61, "Poliwhirl"},
{62, "Poliwrath"},
{63, "Abra"},
{64, "Kadabra"},
{65, "Alakazam"},
{66, "Machop"},
{67, "Machoke"},
{68, "Machamp"},
{69, "Bellsprout"},
{70, "Weepinbell"},
{71, "Victreebel"},
{72, "Tentacool"},
{73, "Tentacruel"},
{74, "Geodude"},
{75, "Graveler"},
{76, "Golem"},
{77, "Ponyta"},
{78, "Rapidash"},
{79, "Slowpoke"},
{80, "Slowbro"},
{81, "Magnemite"},
{82, "Magneton"},
{83, "Farfetch'd"},
{84, "Doduo"},
{85, "Dodrio"},
{86, "Seel"},
{87, "Dewgong"},
{88, "Grimer"},
{89, "Muk"},
{90, "Shellder"},
{91, "Cloyster"},
{92, "Gastly"},
{93, "Haunter"},
{94, "Gengar"},
{95, "Onix"},
{96, "Drowzee"},
{97, "Hypno"},
{98, "Krabby"},
{99, "Kingler"},
{100, "Voltorb"},
{101, "Electrode"},
{102, "Exeggcute"},
{103, "Exeggutor"},
{104, "Cubone"},
{105, "Marowak"},
{106, "Hitmonlee"},
{107, "Hitmonchan"},
{108, "Lickitung"},
{109, "Koffing"},
{110, "Weezing"},
{111, "Rhyhorn"},
{112, "Rhydon"},
{113, "Chansey"},
{114, "Tangela"},
{115, "Kangaskhan"},
{116, "Horsea"},
{117, "Seadra"},
{118, "Goldeen"},
{119, "Seaking"},
{120, "Staryu"},
{121, "Starmie"},
{122, "Mr. Mime"},
{123, "Scyther"},
{124, "Jynx"},
{125, "Electabuzz"},
{126, "Magmar"},
{127, "Pinsir"},
{128, "Tauros"},
{129, "Magikarp"},
{130, "Gyarados"},
{131, "Lapras"},
{132, "Ditto"},
{133, "Eevee"},
{134, "Vaporeon"},
{135, "Jolteon"},
{136, "Flareon"},
{137, "Porygon"},
{138, "Omanyte"},
{139, "Omastar"},
{140, "Kabuto"},
{141, "Kabutops"},
{142, "Aerodactyl"},
{143, "Snorlax"},
{144, "Articuno"},
{145, "Zapdos"},
{146, "Moltres"},
{147, "Dratini"},
{148, "Dragonair"},
{149, "Dragonite"},
{150, "Mewtwo"},
{151, "Mew"},
};
+25
View File
@@ -0,0 +1,25 @@
#ifndef POKEMON_H
#define POKEMON_H
#include <string>
#include "olcPixelGameEngine.h"
using namespace std;
class Pokemon {
public:
string name;
int id;
Pokemon(int id, string name);
void drawPokemon(int id);
void drawPokemon(string name);
int getID(string name);
int getName(int it);
};
extern vector<Pokemon> allPokemon;
#endif
+1 -1
View File
@@ -26,7 +26,7 @@ private:
int playerTileY = 1;
float moveTimer = 0.0f;
float moveDuration = 0.2f;
const float moveDuration = 0.2f;
olc::vi2d moveOffset = { 0, 0 };
olc::vi2d moveDirection = { 0, 0 };