ScummVM API documentation
breath.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * Additional copyright for this file:
8  * Copyright (C) 1999-2000 Revolution Software Ltd.
9  * This code is based on source code created by Revolution Software,
10  * used with permission.
11  *
12  * This program is free software: you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation, either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program. If not, see <http://www.gnu.org/licenses/>.
24  *
25  */
26 
27 #ifndef ICB_BREATH_H
28 #define ICB_BREATH_H
29 
30 #include "engines/icb/common/px_common.h"
31 
32 namespace ICB {
33 
34 #define MAX_BREATH 8 // number of particles
35 
36 #define BREATH_OFF 0
37 #define BREATH_ON 1
38 #define BREATH_SMOKE 2
39 
40 class Breath {
41 public:
42  SVECTOR position; // 8 bytes?
43 
44  int16 breathColour[MAX_BREATH]; // 8 bytes
45 
46  int8 breathZ[MAX_BREATH]; // 4 bytes
47  int8 breathY[MAX_BREATH]; // 4 bytes
48  int8 breathSize[MAX_BREATH]; // 4 bytes
49  int8 breathStarted[MAX_BREATH]; // 4 bytes
50  int16 breathEnd; // 2 bytes
51  uint8 on; // 1 byte
52  int8 allStarted; // 1 byte (how many times reset)
53 
54  Breath();
55  void Update();
56  void Init();
57 };
58 
59 } // End of namespace ICB
60 
61 #endif
Definition: px_capri_maths.h:53
Definition: actor.h:32
Definition: breath.h:40