source: abuse/trunk/src/human.hpp @ 112

Last change on this file since 112 was 57, checked in by Sam Hocevar, 11 years ago
  • Move each header to the same directory as its corresponding source, to get a better idea of which files are likely to export symbols.
File size: 788 bytes
Line 
1/*
2 *  Abuse - dark 2D side-scrolling platform game
3 *  Copyright (c) 1995 Crack dot Com
4 *
5 *  This software was released into the Public Domain. As with most public
6 *  domain software, no warranty is made or implied by Crack dot Com or
7 *  Jonathan Clark.
8 */
9
10#ifndef __HUMAN_HPP_
11#define __HUMAN_HPP_
12#include "objects.hpp"
13#include "ability.hpp"
14
15class human : public game_object
16{
17
18public : 
19  human(long X, long Y) { defaults(); x=X; y=Y; }
20  human(FILE *fp, unsigned char *state_remap) { load(fp,state_remap); }
21  virtual int size() { return game_object::size(); }
22  virtual game_objects type() { return O_human; }
23  virtual void do_damage(int amount, game_object *from);
24  virtual int move(int cx, int cy, int button);  // return false if the route is blocked
25} ;
26
27#endif
28
29
30
31
32
Note: See TracBrowser for help on using the repository browser.