Skyscraper 2.0
floorindicator.h
Go to the documentation of this file.
1/*
2 Scalable Building Simulator - Floor Indicator Object
3 The Skyscraper Project - Version 2.0
4 Copyright (C)2004-2024 Ryan Thoryk
5 https://www.skyscrapersim.net
6 https://sourceforge.net/projects/skyscraper/
7 Contact - ryan@skyscrapersim.net
8
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License
11 as published by the Free Software Foundation; either version 2
12 of the License, or (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22*/
23
24#ifndef _SBS_FLOORINDICATOR_H
25#define _SBS_FLOORINDICATOR_H
26
27namespace SBS {
28
30{
31public:
32
33 int elev; //elevator this indicator is assigned to
34 int car; //elevator car this indicator is assigned to
35 std::string Prefix; //texture name prefix
36 std::string Blank; //blank texture name
37
38 //functions
39 FloorIndicator(Object *parent, int index, int elevator, int car, const std::string &texture_prefix, const std::string &blank_texture, const std::string &direction, Real CenterX, Real CenterZ, Real width, Real height, Real altitude);
41 void Enabled(bool value);
42 void Update(bool blank = false);
43 bool IsEnabled() { return is_enabled; }
44 void Flash(bool enabled);
45 void Off();
46 void On();
47 void Loop();
48
49private:
50 MeshObject* FloorIndicatorMesh; //indicator mesh object
52 bool off;
53
54 class Timer; //internal timer class
55
56 //flash timer object
58};
59
60}
61
62#endif
MeshObject * FloorIndicatorMesh
Ogre::Real Real
Definition globals.h:57
#define SBSIMPEXP
Definition globals.h:53