Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Pokedex_Assignment
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
a-j.towse
Pokedex_Assignment
Commits
2a43be28
Commit
2a43be28
authored
Jan 01, 2023
by
a-j.towse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define functions
parent
8b023cf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
main.c
main.c
+24
-0
No files found.
main.c
View file @
2a43be28
...
@@ -38,3 +38,27 @@ typedef struct PlayerNode {
...
@@ -38,3 +38,27 @@ typedef struct PlayerNode {
struct
PokemonNode
pokemonList
[];
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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment