source: golgotha/src/golg/human.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: 1.3 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 HUMAN_HH
10#define HUMAN_HH
11
12#include "team_api.hh"
13#include "memory/que.hh"
14
15class g1_human_class : public g1_team_api_class
16{
17public:
18  enum { MAX_COMMANDS = 30 };
19
20  g1_human_class(g1_loader_class *f);
21  ~g1_human_class();
22
23  i4_float mouse_look_increment_x, mouse_look_increment_y;
24
25  g1_typed_reference_class<g1_object_class> selected_object;
26  g1_typed_reference_class<g1_object_class> preassigned[10];
27
28  void send_selected_units(i4_float x, i4_float y);
29  void clicked_on_object(g1_object_class *o);
30
31  w8 determine_cursor(g1_object_class *object_mouse_is_on);
32  void player_clicked(g1_object_class *o, float gx=0, float gy=0);
33  int build_unit(g1_object_type type);
34
35  virtual void think();
36  virtual char *name() { return "Human"; }
37
38  virtual void load(g1_loader_class *fp);
39};
40
41extern g1_human_class *g1_human;
42
43#endif
Note: See TracBrowser for help on using the repository browser.