source: golgotha/src/golg/editor/mode/e_game.cc @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 14 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: 970 bytes
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#include "editor/e_game.hh"
10
11g1_mode_handler::state g1_game_mode::current_state()
12{
13  w8 remap[]={ ROTATE,
14               ZOOM,
15               DRAG_SELECT,
16               DRAG_SELECT,
17               OTHER,
18               OTHER
19  };
20
21  I4_ASSERT(g1_edit_state.ai.minor_mode<=sizeof(remap), "state too big");
22
23  return (g1_mode_handler::state)remap[g1_edit_state.ai.minor_mode];
24}
25
26
27g1_game_mode::g1_game_mode(g1_controller_edit_class *c)
28  : g1_mode_handler(c)
29{
30}
Note: See TracBrowser for help on using the repository browser.