OpenMoHAA
0.83.0
Loading...
Searching...
No Matches
nature.h
1
/*
2
===========================================================================
3
Copyright (C) 2015 the OpenMoHAA team
4
5
This file is part of OpenMoHAA source code.
6
7
OpenMoHAA source code is free software; you can redistribute it
8
and/or modify it under the terms of the GNU General Public License as
9
published by the Free Software Foundation; either version 2 of the License,
10
or (at your option) any later version.
11
12
OpenMoHAA source code is distributed in the hope that it will be
13
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with OpenMoHAA source code; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
===========================================================================
21
*/
22
23
// nature.h:
24
25
#include "g_local.h"
26
#include "trigger.h"
27
28
class
Emitter :
public
Entity
29
{
30
private
:
31
str emitterName;
32
void
setEmitter(str name);
33
void
EmitterName(Event *ev);
34
35
public
:
36
CLASS_PROTOTYPE(Emitter);
37
Emitter();
38
void
Archive(
Archiver
& arc)
override
;
39
};
40
41
inline
void
Emitter::Archive(
Archiver
& arc)
42
{
43
Entity::Archive(arc);
44
45
arc.ArchiveString(&emitterName);
46
if
(arc.Loading()) {
47
setEmitter(emitterName);
48
}
49
}
50
51
class
Rain :
public
Emitter
52
{
53
private
:
54
str rainName;
55
void
setRainName(str name);
56
57
public
:
58
CLASS_PROTOTYPE(Rain);
59
Rain();
60
void
Archive(
Archiver
& arc)
override
;
61
};
62
63
inline
void
Rain::Archive(
Archiver
& arc)
64
{
65
Entity::Archive(arc);
66
67
arc.ArchiveString(&rainName);
68
if
(arc.Loading()) {
69
setRainName(rainName);
70
}
71
}
72
73
class
PuffDaddy :
public
Animate
74
{
75
private
:
76
void
Touch(Event *ev);
77
void
Idle(Event *ev);
78
79
public
:
80
CLASS_PROTOTYPE(PuffDaddy);
81
PuffDaddy();
82
};
Archiver
Definition
archive.h:86
code
fgame
nature.h
Generated by
1.13.2