Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
c_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
elijah vasquez
c_pokedex_assignment
Commits
3a410e40
Commit
3a410e40
authored
Jan 16, 2023
by
elijah vasquez
🦍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more functions
parent
176839ca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
settings.json
.vscode/settings.json
+2
-1
functions.h
functions.h
+13
-3
No files found.
.vscode/settings.json
View file @
3a410e40
{
{
"files.associations"
:
{
"files.associations"
:
{
"functions.h"
:
"c"
"functions.h"
:
"c"
,
"typeinfo"
:
"c"
}
}
}
}
\ No newline at end of file
functions.h
View file @
3a410e40
...
@@ -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
);
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