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
d4d8a87d
Commit
d4d8a87d
authored
9 years ago
by
Montjoie Henri
Browse files
Options
Downloads
Patches
Plain Diff
definition des structures
parent
55c7eb6a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main.c
+1
-1
1 addition, 1 deletion
src/main.c
src/structures.h
+40
-0
40 additions, 0 deletions
src/structures.h
with
41 additions
and
1 deletion
src/main.c
+
1
−
1
View file @
d4d8a87d
#include
<stdio.h>
#include
<stdlib.h>
#include
"structures.h"
int
main
()
{
...
...
@@ -7,4 +8,3 @@ int main()
return
0
;
}
/*test*/
This diff is collapsed.
Click to expand it.
src/structures.h
0 → 100644
+
40
−
0
View file @
d4d8a87d
#ifndef STRUCTURES_H_INCLUDED
#define STRUCTURES_H_INCLUDED
/* definition des structures ncessaires : case, classe, etc */
typedef
enum
{
plaine
,
eau
,
montagne
,
foret
}
type_terrain
;
typedef
enum
{
faux
,
vrai
}
boolean
;
typedef
struct
{
unsigned
short
int
coord_x
;
unsigned
short
int
coord_y
;
type_terrain
terrain
;
boolean
occupee
;
}
Case
;
typedef
struct
{
char
nom
[
16
];
unsigned
short
int
degats_directs
;
unsigned
short
int
degats_permanents
;
boolean
paralysie
;
}
attaque
;
typedef
struct
{
char
nom
[
16
];
attaque
attaque
;
unsigned
short
int
points_deplacement_max
;
unsigned
short
int
PV_max
;
}
classe
;
typedef
struct
{
char
nom
[
16
];
classe
classe
;
unsigned
short
int
points_deplacement
;
unsigned
short
int
PV
;
boolean
paralyse
;
Case
position
;
}
personnage
;
#endif
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