1 |
/* |
/* |
2 |
* Copyright (C) 2002 Daniel Heck |
* Copyright (C) 2002,2003 Daniel Heck |
3 |
* |
* |
4 |
* This program is free software; you can redistribute it and/or |
* This program is free software; you can redistribute it and/or |
5 |
* modify it under the terms of the GNU General Public License |
* modify it under the terms of the GNU General Public License |
14 |
* You should have received a copy of the GNU General Public License along |
* You should have received a copy of the GNU General Public License along |
15 |
* with this program; if not, write to the Free Software Foundation, Inc., |
* with this program; if not, write to the Free Software Foundation, Inc., |
16 |
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
17 |
|
* |
18 |
|
* $Id$ |
19 |
*/ |
*/ |
20 |
#ifndef OBJECT_MIXINS_HH |
#ifndef OBJECT_MIXINS_HH |
21 |
#define OBJECT_MIXINS_HH |
#define OBJECT_MIXINS_HH |
52 |
protected: |
protected: |
53 |
MovableStone(const char *name) : Stone(name) {} |
MovableStone(const char *name) : Stone(name) {} |
54 |
|
|
55 |
bool on_move() { return true; } |
bool is_movable() { return true; } |
56 |
void actor_inside (Actor *a) { |
void actor_inside (Actor *a) { |
57 |
SendMessage(a, "shatter"); |
SendMessage(a, "shatter"); |
58 |
} |
} |