Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lemeilleurjeudumonde
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tacticalrpg
lemeilleurjeudumonde
Commits
7c351fa0
There was a problem fetching the pipeline summary.
Commit
7c351fa0
authored
8 years ago
by
Romain Jegat
Browse files
Options
Downloads
Patches
Plain Diff
Modification des noms de fonctions relatives aux compétences
parent
d7bb905f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/competence.c
+19
-6
19 additions, 6 deletions
src/competence.c
src/competence.h
+3
-30
3 additions, 30 deletions
src/competence.h
with
22 additions
and
36 deletions
src/competence.c
+
19
−
6
View file @
7c351fa0
...
...
@@ -8,16 +8,29 @@
* \brief Fichier contenant le code des fonctions liees aux arbres de compétences.
*/
Arbre_Competence
*
init_arbre_competence
(
Arbre_Competence
*
a
){
return
NULL
;
}
/*! Copie de la struct Competence pour travailler
typedef struct Competence{
char nomComp[TAILLE_NOMS];
char id[TAILLE_ID];
unsigned int prix_competence;
struct Competence *frere;
struct Competence *enfant;
struct Effet_Competence *effet;
boolean connu;
}Competence;
*/
Arbre_
Competence
*
construire_arbre_competence
(
Arbre_
Competence
*
a
){
/* Construit un arbre à partir d'un fichier XML */
Competence
*
construire_arbre_competence
(
Competence
*
a
){
return
NULL
;
}
int
rafraichir_competences
(
Arbre_
Competence
*
a
){
int
rafraichir_competences
(
Competence
*
a
){
return
0
;
}
...
...
@@ -26,7 +39,7 @@ boolean est_connue(Competence *c){
return
(
c
->
connu
);
}
boolean
est_complet
(
Arbre_
Competence
*
a
){
boolean
est_complet
(
Competence
*
a
){
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
src/competence.h
+
3
−
30
View file @
7c351fa0
...
...
@@ -13,42 +13,15 @@ typedef struct Arbre_Competence{ /* Arbre de comp
}
Arbre_Competence
;
/* //Cette structure est deja definie dans structure.h
typedef struct Competence{ // Competence d'un arbre de talent
unsigned short int id;
type_nom nom;
unsigned short int etage;
struct competence *parent;
struct competence *enfant_gauche;
struct competence *enfant_droit;
struct effet_competence *effet;
boolean connu;
}competence;
*/
/* //Cette structure est deja definie dans structure.h
typedef struct effet_competence{ // Effet d'une compétence de l'arbre
unsigned short int id;
type_nom nom;
// effets à définir
}effet_competence;
*/
/* Fonctions */
Arbre_Competence
*
init_arbre_competence
(
Arbre_Competence
*
a
);
Arbre_Competence
*
construire_arbre_competence
(
Arbre_Competence
*
a
);
Competence
*
construire_arbre_competence
(
Competence
*
a
);
int
rafraichir_competences
(
Arbre_
Competence
*
a
);
int
rafraichir_competences
(
Competence
*
a
);
boolean
est_connue
(
Competence
*
c
);
boolean
est_complet
(
Arbre_
Competence
*
a
);
boolean
est_complet
(
Competence
*
a
);
Effet_Competence
*
get_effet
(
Competence
*
c
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment