1 |
/* |
/* |
2 |
* Copyright (C) 2002,2003 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 |
6 |
* as published by the Free Software Foundation; either version 2 |
* as published by the Free Software Foundation; either version 2 |
7 |
* of the License, or (at your option) any later version. |
* of the License, or (at your option) any later version. |
20 |
#ifndef STONES_INTERNAL_HH_INCLUDED |
#ifndef STONES_INTERNAL_HH_INCLUDED |
21 |
#define STONES_INTERNAL_HH_INCLUDED |
#define STONES_INTERNAL_HH_INCLUDED |
22 |
|
|
23 |
|
#ifndef FWD_HH |
24 |
|
#include "fwd.hh" |
25 |
|
#endif |
26 |
|
|
27 |
namespace stones |
namespace stones |
28 |
{ |
{ |
29 |
void Init_simple(); |
void Init_simple(); |
30 |
void Init_complex(); |
void Init_complex(); |
31 |
|
|
32 |
|
// allows to completely remove a Stone and its model |
33 |
|
// for a short time |
34 |
|
// |
35 |
|
// - "delays" animation |
36 |
|
// |
37 |
|
// @@@ FIXME: alarms have to be disabled as well |
38 |
|
|
39 |
|
class YieldedGridStone { |
40 |
|
world::Stone *stone; |
41 |
|
display::Model *model; |
42 |
|
|
43 |
|
YieldedGridStone(const YieldedGridStone&); |
44 |
|
YieldedGridStone& operator = (const YieldedGridStone&); |
45 |
|
public: |
46 |
|
|
47 |
|
YieldedGridStone(world::Stone *st); |
48 |
|
~YieldedGridStone(); |
49 |
|
|
50 |
|
void set_stone(enigma::GridPos pos); |
51 |
|
}; |
52 |
} |
} |
53 |
|
|
54 |
|
|