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
ac2b0c85
Commit
ac2b0c85
authored
9 years ago
by
Romain Jegat
Browse files
Options
Downloads
Patches
Plain Diff
Mise à jour de structures.h
parent
53207b43
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/structures.h
+39
-21
39 additions, 21 deletions
src/structures.h
with
39 additions
and
21 deletions
src/structures.h
+
39
−
21
View file @
ac2b0c85
...
...
@@ -3,69 +3,87 @@
#define TAILLE_MAX_CARTE 256
#define TAILLE_NOMS 16
/* definition des structures ncessaires : case, classe, etc */
typedef
char
*
type_nom
;
/* definition des structures ncessaires */
/* SOMMAIRE */
/* Type_terrain */
/* Case */
/* Attaque */
/* Classe */
/* Personnage */
/* Effet */
/* Competence */
typedef
enum
{
faux
,
vrai
}
boolean
;
typedef
struct
{
type_nom
nom
;
char
nom
[
TAILLE_NOMS
]
;
boolean
franchissable
;
boolean
franchissable_sorts
;
unsigned
short
int
PD_requis
;
}
t
ype_terrain
;
}
T
ype_terrain
;
typedef
struct
{
typedef
struct
Case
{
unsigned
short
int
coord_x
;
unsigned
short
int
coord_y
;
t
ype_terrain
*
terrain
;
T
ype_terrain
*
terrain
;
boolean
occupee
;
boolean
surbrillance
;
}
Case
;
typedef
Case
carte
[
TAILLE_MAX_CARTE
];
typedef
struct
{
type_nom
nom
;
char
nom
[
TAILLE_NOMS
]
;
unsigned
short
int
degats_directs
;
unsigned
short
int
degats_permanents
;
boolean
paralysie
;
}
attaque
;
unsigned
short
int
portee
;
Effet
effets
[];
}
Attaque
;
typedef
struct
{
type_nom
nom
;
a
ttaque
*
attaques
;
char
nom
[
TAILLE_NOMS
]
;
A
ttaque
*
attaques
;
unsigned
short
int
points_deplacement_max
;
unsigned
short
int
PV_max
;
unsigned
short
int
mana_max
;
}
c
lasse
;
}
C
lasse
;
typedef
struct
{
type_nom
nom
;
c
lasse
classe
;
char
nom
[
TAILLE_NOMS
]
;
C
lasse
classe
;
unsigned
short
int
points_deplacement
;
unsigned
short
int
PV
;
unsigned
short
int
mana
;
boolean
paralyse
;
Case
*
position
;
}
personnage
;
Effet
effets
[];
}
Personnage
;
typedef
struct
{
unsigned
int
nb_tours_restants
;
unsigned
int
valeur_degats_duree
;
unsigned
int
valeur_soin_duree
;
boolean
paralysie
;
}
Effet
;
typedef
struct
competence
{
unsigned
short
int
id
;
type_nom
nom
;
char
nom
[
TAILLE_NOMS
]
;
unsigned
short
int
etage
;
struct
competence
*
parent
;
struct
competence
*
enfant_gauche
;
struct
competence
*
enfant_droit
;
struct
effet_competence
*
effet
;
boolean
connu
;
}
c
ompetence
;
}
C
ompetence
;
typedef
struct
effet_competence
{
unsigned
short
int
id
;
type_nom
nom
;
char
nom
[
TAILLE_NOMS
]
;
/* effets dfinir */
}
effet_competence
;
...
...
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