src/player.h
changeset 6001 1e4c5406cd1a
parent 5980 cec1cfd00d1e
child 6285 187e3ef04cc9
equal deleted inserted replaced
6000:f9d6845d5970 6001:1e4c5406cd1a
   260 static inline bool IsInteractivePlayer(PlayerID pi)
   260 static inline bool IsInteractivePlayer(PlayerID pi)
   261 {
   261 {
   262 	return pi == _local_player;
   262 	return pi == _local_player;
   263 }
   263 }
   264 
   264 
       
   265 void DrawPlayerIcon(PlayerID p, int x, int y);
       
   266 
   265 /* Validate functions for rail building */
   267 /* Validate functions for rail building */
   266 static inline bool ValParamRailtype(uint32 rail) { return HASBIT(GetPlayer(_current_player)->avail_railtypes, rail);}
   268 static inline bool ValParamRailtype(uint32 rail) { return HASBIT(GetPlayer(_current_player)->avail_railtypes, rail);}
   267 
   269 
   268 /** Returns the "best" railtype a player can build.
   270 /** Returns the "best" railtype a player can build.
   269  * As the AI doesn't know what the BEST one is, we have our own priority list
   271  * As the AI doesn't know what the BEST one is, we have our own priority list