source: golgotha/src/golg/mess_id.hh @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 12 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 2.8 KB
Line 
1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9#ifndef G1_MEESAGE_ID_HH
10#define G1_MEESAGE_ID_HH
11
12#include "device/event.hh"
13
14class g1_object_controller_class;
15class g1_movie_flow_class;
16
17
18// g1 application user_message space message id's
19enum
20{
21  G1_NO_MESSAGE,
22  G1_MAIN_MENU,
23  G1_SERVER_MENU,
24  G1_NETWORK_MENU,
25  G1_CLIENT_JOINED_MENU,
26  G1_HELP_SCREEN,
27  G1_PLOT_SCREEN,
28  G1_START_HELP_SCREEN,
29
30  G1_RETURN_TO_GAME,
31  G1_OPTIONS,
32  G1_YOU_LOSE,
33  G1_YOU_WIN,
34
35  G1_START_NEW_GAME,
36  G1_CONTINUE,
37  G1_ESCAPE,
38
39  G1_MAP_CHANGED,
40  G1_GET_ROOT_IMAGE,
41  G1_GET_CURRENT_MOVIE,
42  G1_REDRAW_LATER,
43  G1_PLAY_MOVIE,
44  G1_STOP_MOVIE,
45  G1_TMERGE_FILE_OPEN_CANCEL,
46
47  G1_INTERLACE_PIXEL,
48  G1_DOUBLE_PIXEL,
49  G1_NORMAL_PIXEL,
50
51  G1_EDITOR_LOAD_TERRAIN_HEIGHT_OK,
52  G1_EDITOR_SAVE_TERRAIN_HEIGHT_OK,
53  G1_EDITOR_NO_OP,
54
55  G1_EDITOR_SET_SKY_OK,
56
57  G1_TMERGE_FILE_OPEN_OK,
58  G1_FILE_OPEN_OK,
59  G1_FILE_OPEN_CANCEL,
60  G1_FILE_SAVEAS_OK,
61  G1_OPEN_DLL_OK,
62  G1_EDITOR_RESIZE_PLACE_LT,
63  G1_EDITOR_RESIZE_PLACE_CT,
64  G1_EDITOR_RESIZE_PLACE_RT,
65  G1_EDITOR_RESIZE_PLACE_LC,
66  G1_EDITOR_RESIZE_PLACE_CC,
67  G1_EDITOR_RESIZE_PLACE_RC,
68  G1_EDITOR_RESIZE_PLACE_BL,
69  G1_EDITOR_RESIZE_PLACE_BC,
70  G1_EDITOR_RESIZE_PLACE_BR,
71  G1_EDITOR_RESIZE_MAP_OK,
72  G1_EDITOR_NEW_OK,
73  G1_EDITOR_RES_SET_NAME,
74  G1_EDITOR_RES_BROWSE,
75  G1_EDITOR_CHANGE_RES_OK,
76  G1_EDITOR_CHANGE_RES_RELOAD_OK,
77
78  G1_EDITOR_MODAL_BOX_CANCEL,
79  G1_EDITOR_MODAL_CLOSED,
80  G1_EDITOR_PROFILE_CLOSED,
81  G1_EDITOR_DEBUG_CLOSED,
82
83  G1_EDITOR_SCENE_WINDOW_CLOSED,
84  G1_EDITOR_AI_WINDOW_CLOSED,
85  G1_EDITOR_CREATE_OBJECT,
86  G1_EDITOR_SET_SNAP_OK,
87  G1_EDITOR_TERRAIN_NOISE_OK,
88
89  G1_QUIT
90};
91
92
93class g1_get_root_image_event : public i4_user_message_event_class
94{
95public:
96  i4_image_class *result;
97  g1_get_root_image_event() : i4_user_message_event_class(G1_GET_ROOT_IMAGE) { result=0; }
98  virtual i4_event  *copy() { return new g1_get_root_image_event; } 
99  virtual dispatch_time when()  { return NOW; } 
100  char *name() { return "get_root_image"; }
101} ;
102
103
104class g1_movie_flow_class;
105class g1_get_current_movie_event : public i4_user_message_event_class
106{
107public:
108  g1_movie_flow_class *mflow;
109  g1_get_current_movie_event() : i4_user_message_event_class(G1_GET_CURRENT_MOVIE), mflow(0) {}
110  virtual i4_event  *copy() { return 0; } 
111  virtual dispatch_time when()  { return NOW; } 
112};
113
114#endif
Note: See TracBrowser for help on using the repository browser.