(svn r4623) - Codechange: s/byte/PlayerID/

This commit is contained in:
Darkvater 2006-04-29 14:31:16 +00:00
parent d3edede498
commit 8faf1838e6
7 changed files with 8 additions and 8 deletions

View File

@ -11,7 +11,7 @@
/**
* Dequeues commands put in the queue via AI_PutCommandInQueue.
*/
static void AI_DequeueCommands(byte player)
static void AI_DequeueCommands(PlayerID player)
{
AICommand *com, *entry_com;

View File

@ -580,7 +580,7 @@ static void UpdatePlayerMenuHeight(Window *w)
}
}
extern void DrawPlayerIcon(int p, int x, int y);
extern void DrawPlayerIcon(PlayerID pid, int x, int y);
static void PlayerMenuWndProc(Window *w, WindowEvent *e)
{

View File

@ -1719,7 +1719,7 @@ static const Widget _cheat_widgets[] = {
{ WIDGETS_END},
};
extern void DrawPlayerIcon(int p, int x, int y);
extern void DrawPlayerIcon(PlayerID pid, int x, int y);
static void CheatsWndProc(Window *w, WindowEvent *e)
{

View File

@ -222,7 +222,7 @@ VARDEF bool _networking;
VARDEF bool _network_available; // is network mode available?
VARDEF bool _network_server; // network-server is active
VARDEF bool _network_dedicated; // are we a dedicated server?
VARDEF byte _network_playas; // an id to play as..
VARDEF PlayerID _network_playas; // an id to play as..
void ParseConnectionString(const char **player, const char **port, char *connection_string);
void NetworkUpdateClientInfo(uint16 client_index);

View File

@ -327,7 +327,7 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_CLIENT_INFO)
{
NetworkClientInfo *ci;
uint16 index = NetworkRecv_uint16(MY_CLIENT, p);
byte playas = NetworkRecv_uint8(MY_CLIENT, p);
PlayerID playas = NetworkRecv_uint8(MY_CLIENT, p);
char name[NETWORK_NAME_LENGTH];
char unique_id[NETWORK_NAME_LENGTH];

View File

@ -27,7 +27,7 @@
#define BTC 15
typedef struct network_d {
byte company; // select company in network lobby
PlayerID company; // select company in network lobby
byte field; // select text-field in start-server and game-listing
NetworkGameList *server; // selected server in lobby and game-listing
FiosItem *map; // selected map in start-server
@ -1004,7 +1004,7 @@ static void ShowNetworkLobbyWindow(NetworkGameList *ngl)
// and also makes able to give money to them, kick them (if server)
// and stuff like that.
extern void DrawPlayerIcon(int p, int x, int y);
extern void DrawPlayerIcon(PlayerID pid, int x, int y);
// Every action must be of this form
typedef void ClientList_Action_Proc(byte client_no);

View File

@ -29,7 +29,7 @@ static const Widget _town_authority_widgets[] = {
};
extern const byte _town_action_costs[8];
extern void DrawPlayerIcon(int p, int x, int y);
extern void DrawPlayerIcon(PlayerID pid, int x, int y);
/** Get a list of available actions to do at a town.
* @param *nump if not NULL add put the number of available actions in it