-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmultiplayer.h
More file actions
42 lines (36 loc) · 826 Bytes
/
multiplayer.h
File metadata and controls
42 lines (36 loc) · 826 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* In The Name Of God
* ========================================
* [] File Name : multiplayer.h
*
* [] Creation Date : 19-01-2016
*
* [] Created By : Iman Tabrizian (tabrizian@outlook.com)
*
* [] Created By : Parham Alvani (parham.alvani@gmail.com)
* =======================================
*/
/*
* Copyright (c) 2016 Parham Alvani and Iman Tabrizian.
*/
#ifndef GOOD_MULTIPLAYER_H
#define GOOD_MULTIPLAYER_H
enum move_direction {
NORTH = 1,
SOUTH,
NORTHEAST,
NORTHWEST,
SOUTHEAST,
SOUTHWEST,
};
struct cell_move_data {
int cell_energy;
enum move_direction move_direction;
};
struct cell_position {
int x;
int y;
};
struct cell_position cell_new(struct cell_position your_initial_position);
struct cell_move_data cell_move(struct cell_move_data your_move);
#endif //GOOD_MULTIPLAYER_H