source: golgotha/src/golg/objs/bank.hh @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 11 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.4 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_BANK_HH
10#define G1_BANK_HH
11
12#include "g1_object.hh"
13#include "inc/isllist.hh"
14#include "objs/bases.hh"
15#include "math/vector.hh"
16
17class g1_moneycrate_class;
18
19class g1_bank_class : public g1_factory_class
20{
21protected:
22  i4_3d_vector crate_pos;
23public:
24  g1_bank_class *next;
25  g1_moneycrate_class* crate();
26  void set_crate(g1_moneycrate_class *cr);
27
28  g1_bank_class(g1_object_type id, g1_loader_class *fp);
29
30  void crate_location(i4_3d_vector &pos);
31  void create_crate();
32  void detach_crate();
33 
34  virtual i4_bool occupy_location();
35  virtual void unoccupy_location();
36  virtual void change_player_num(int new_team);
37  virtual void think();
38  virtual i4_bool build(int type);
39  virtual g1_path_object_class *get_start() { return 0; }
40  virtual void request_remove();
41};
42
43extern i4_isl_list<g1_bank_class> g1_bank_list[G1_MAX_PLAYERS];
44extern int g1_bank_list_count[G1_MAX_PLAYERS];
45
46#endif
Note: See TracBrowser for help on using the repository browser.