src/openttd.h
changeset 10252 8d87c2f342cb
parent 10247 145d0458b685
child 10397 84e97769583b
equal deleted inserted replaced
10251:b41d7d8c873b 10252:8d87c2f342cb
     1 /* $Id$ */
     1 /* $Id$ */
       
     2 
     2 /** @file openttd.h */
     3 /** @file openttd.h */
     3 
     4 
     4 #ifndef OPENTTD_H
     5 #ifndef OPENTTD_H
     5 #define OPENTTD_H
     6 #define OPENTTD_H
     6 
     7 
   106 	SCROLL_SAVE = 2,
   107 	SCROLL_SAVE = 2,
   107 	SCROLL_CHAT = 4,
   108 	SCROLL_CHAT = 4,
   108 };
   109 };
   109 extern byte _no_scroll;
   110 extern byte _no_scroll;
   110 
   111 
   111 /** To have a concurrently running thread interface with the main program, use
       
   112  * the OTTD_SendThreadMessage() function. Actions to perform upon the message are handled
       
   113  * in the ProcessSentMessage() function */
       
   114 enum ThreadMsg {
       
   115 	MSG_OTTD_NO_MESSAGE,
       
   116 	MSG_OTTD_SAVETHREAD_DONE,
       
   117 	MSG_OTTD_SAVETHREAD_ERROR,
       
   118 };
       
   119 
       
   120 void OTTD_SendThreadMessage(ThreadMsg msg);
       
   121 
       
   122 extern byte _game_mode;
   112 extern byte _game_mode;
   123 extern bool _exit_game;
   113 extern bool _exit_game;
   124 extern int8 _pause_game;
   114 extern int8 _pause_game;
   125 
   115 
   126 #endif /* OPENTTD_H */
   116 #endif /* OPENTTD_H */