source: abuse/tags/pd/abuse/inc/human.hpp @ 604

Last change on this file since 604 was 49, checked in by Sam Hocevar, 15 years ago
  • Imported original public domain release, for future reference.
File size: 524 bytes
Line 
1#ifndef __HUMAN_HPP_
2#define __HUMAN_HPP_
3#include "objects.hpp"
4#include "ability.hpp"
5
6class human : public game_object
7{
8
9public : 
10  human(long X, long Y) { defaults(); x=X; y=Y; }
11  human(FILE *fp, unsigned char *state_remap) { load(fp,state_remap); }
12  virtual int size() { return game_object::size(); }
13  virtual game_objects type() { return O_human; }
14  virtual void do_damage(int amount, game_object *from);
15  virtual int move(int cx, int cy, int button);  // return false if the route is blocked
16} ;
17
18#endif
19
20
21
22
23
Note: See TracBrowser for help on using the repository browser.