functions.h
changeset 4828 4e6f53fa10cb
parent 4766 aa276d0ec2eb
child 4829 9a0a034d0f55
equal deleted inserted replaced
4827:cf5430082cb5 4828:4e6f53fa10cb
   130 /* tunnelbridge_cmd.c */
   130 /* tunnelbridge_cmd.c */
   131 bool CheckBridge_Stuff(byte bridge_type, uint bridge_len);
   131 bool CheckBridge_Stuff(byte bridge_type, uint bridge_len);
   132 uint32 GetBridgeLength(TileIndex begin, TileIndex end);
   132 uint32 GetBridgeLength(TileIndex begin, TileIndex end);
   133 int CalcBridgeLenCostFactor(int x);
   133 int CalcBridgeLenCostFactor(int x);
   134 
   134 
   135 typedef void CommandCallback(bool success, TileIndex tile, uint32 p1, uint32 p2);
       
   136 bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, uint32 cmd);
       
   137 
       
   138 /* network.c */
   135 /* network.c */
   139 void NetworkUDPClose(void);
   136 void NetworkUDPClose(void);
   140 void NetworkStartUp(void);
   137 void NetworkStartUp(void);
   141 void NetworkShutDown(void);
   138 void NetworkShutDown(void);
   142 void NetworkGameLoop(void);
   139 void NetworkGameLoop(void);
   143 void NetworkUDPGameLoop(void);
   140 void NetworkUDPGameLoop(void);
   144 bool NetworkServerStart(void);
   141 bool NetworkServerStart(void);
   145 bool NetworkClientConnectGame(const char* host, unsigned short port);
   142 bool NetworkClientConnectGame(const char* host, unsigned short port);
   146 void NetworkReboot(void);
   143 void NetworkReboot(void);
   147 void NetworkDisconnect(void);
   144 void NetworkDisconnect(void);
   148 void NetworkSend_Command(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallback *callback);
       
   149 
       
   150 /* misc_cmd.c */
   145 /* misc_cmd.c */
   151 void PlaceTreesRandomly(void);
   146 void PlaceTreesRandomly(void);
   152 
   147 
   153 void InitializeLandscapeVariables(bool only_constants);
   148 void InitializeLandscapeVariables(bool only_constants);
   154 
   149