Commit 3a410e40 authored by elijah vasquez's avatar elijah vasquez 🦍

more functions

parent 176839ca
{ {
"files.associations": { "files.associations": {
"functions.h": "c" "functions.h": "c",
"typeinfo": "c"
} }
} }
\ No newline at end of file
...@@ -15,14 +15,24 @@ typedef struct PlayerNode ...@@ -15,14 +15,24 @@ typedef struct PlayerNode
{ {
char playerName[100]; char playerName[100];
int totalPokemon; int totalPokemon;
PokemonNode ptrArray[]; PokemonNode PokemonArray[20];
}PlayerNode; }PlayerNode;
// Pokemon List functions // Pokemon List functions
PokemonNode* NewPokemonNode(char name[15], char type[20], char ability[30]); PokemonNode* NewPokemonNode(char name[15], char type[20], char ability[30]);
void AddPokemonToList(Pokedex *pokedex, char name[15], char type[20], char ability[30]); void AddPokemonToList(Pokedex *pokedex, char name[15], char type[20], char ability[30]);
PokemonNode* FindPokemon(Pokedex pokedex, char name[15]); PokemonNode* FindPokemon(Pokedex pokedex, char name[15]);
// Player List functions // Player List functions
PlayerNode* NewPlayerNode(name);
void AddPlayerToList(*pokedex, name);
PlayerNode* FindPlayer(pokedex, name);
// Additional functions
void AddPokemonToPlayer(pokedex, playerName, pokemonName);
void DisplayPokemonDetails(pokedex, name);
void DisplayPlayerDetails(pokedex, name);
void ListPokemon(pokedex);
void ListPlayers(pokedex);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment