forked from Aisthetic/GoGame
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogic.h
More file actions
31 lines (22 loc) · 624 Bytes
/
Copy pathlogic.h
File metadata and controls
31 lines (22 loc) · 624 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef LOGIC_H_INCLUDED
#define LOGIC_H_INCLUDED
typedef struct Token Token;
typedef struct Team Team;
struct Team{
Token* Members;
int MembersCount;
void (*addMember)(Team* Self, Token Member);
};
struct Token{
char side;
int X;
int Y;
Team (*surroundingAllies)(Token* self);//Pointeurs sur une fonction
Team (*surroundingEnnemies)(Token* self);
Team team; //Pointer to keep track of the changings that happens to the team
};
void addMember(Team* self,Token member);
Team surroundingAllies(Token* self);
Team surroundingEnnemies(Token* self);
Team ConstructTeam();
#endif // LOGIC_H_INCLUDED