12 lines
476 B
C
12 lines
476 B
C
/* controller.h - defines the data types and functions for controllers
|
|
|
|
While the PlayerTile represents the PC, the Controller represents the Player. The Controller contains a pointer to the tile it is currently controlling, and in the case of a Player Controller, the Tile(PlayerTile) that is currently being controlled. Also included is the player name.
|
|
*/
|
|
|
|
struct Controller {
|
|
int id;
|
|
int fd; // file descriptor / socket number
|
|
char name[16];
|
|
struct Tile *tile;
|
|
};
|