Commit 2a43be28 authored by a-j.towse's avatar a-j.towse

Define functions

parent 8b023cf1
......@@ -38,3 +38,27 @@ typedef struct PlayerNode {
struct PokemonNode pokemonList[];
};
//Define functions for PokemonNode struct
struct PokemonNode *NewPokemonNode(char name, char type, char ability );
void AddPokemonToList(struct Pokedex *pokedex,char name, char type, char ability);
struct PokemonNode *FindPokemon(struct Pokedex pokedex, char name);
//Define functions for PlayerNode struct
struct PlayerNode *NewPlayerNode(char name);
void AddPlayerToList(struct Pokedex *pokedex, char name);
struct PlayerNode *FindPlayer(struct Pokedex pokedex, char name);
//Define functions for other functionality
void AddPokemonToPlayer(struct Pokedex pokedex, char Playername, char pokemonName);
void DisplayPokemonDetails(struct Pokedex pokedex, char name);
void DiplayPlayerDetails(struct Pokedex pokedex, char name);
void ListPokemon(struct Pokedex pokedex);
void ListPlayers(struct Pokedex pokedex);
int main () {
return 0;
}
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