Last change
on this file since 124 was
124,
checked in by Sam Hocevar, 15 years ago
|
- Get rid of ugly tabs and trailing spaces everywhere.
|
File size:
786 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 | |
---|
15 | class human : public game_object |
---|
16 | { |
---|
17 | |
---|
18 | public : |
---|
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.