OpenMoHAA
..
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
#pragma once
26
27
#include "g_local.h"
28
#include "trigger.h"
29
30
class
Emitter :
public
Entity
31
{
32
private
:
33
str emitterName;
34
void
setEmitter(str name);
35
void
EmitterName(Event *ev);
36
37
public
:
38
CLASS_PROTOTYPE(Emitter);
39
Emitter();
40
void
Archive(
Archiver
& arc)
override
;
41
};
42
43
inline
void
Emitter::Archive(
Archiver
& arc)
44
{
45
Entity::Archive(arc);
46
47
arc.ArchiveString(&emitterName);
48
if
(arc.Loading()) {
49
setEmitter(emitterName);
50
}
51
}
52
53
class
Rain :
public
Emitter
54
{
55
private
:
56
str rainName;
57
void
setRainName(str name);
58
59
public
:
60
CLASS_PROTOTYPE(Rain);
61
Rain();
62
void
Archive(
Archiver
& arc)
override
;
63
};
64
65
inline
void
Rain::Archive(
Archiver
& arc)
66
{
67
Entity::Archive(arc);
68
69
arc.ArchiveString(&rainName);
70
if
(arc.Loading()) {
71
setRainName(rainName);
72
}
73
}
74
75
class
PuffDaddy :
public
Animate
76
{
77
private
:
78
void
Touch(Event *ev);
79
void
Idle(Event *ev);
80
81
public
:
82
CLASS_PROTOTYPE(PuffDaddy);
83
PuffDaddy();
84
};
Archiver
Definition
archive.h:86
code
fgame
nature.h
Generated by
1.13.2