4 Scalable Building Simulator - Call Button Subsystem Class
5 The Skyscraper Project - Version 1.5 Alpha
6 Copyright (C)2005-2009 Ryan Thoryk
7 http://www.skyscrapersim.com
8 http://sourceforge.net/projects/skyscraper
9 Contact - ryan@tliquest.net
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License
13 as published by the Free Software Foundation; either version 2
14 of the License, or (at your option) any later version.
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 #ifndef _SBS_CALLBUTTON_H
27 #define _SBS_CALLBUTTON_H
29 class SBSIMPEXP CallButton
33 csArray<int> Elevators; //elevators this call button set is assigned to
34 int floor; //floor this call button set is on
35 int Number; //call button index number (on the specified floor)
36 csString Direction; //direction the buttons face; either 'front', 'back', 'left', or 'right'
40 CallButton(csArray<int> &elevators, int floornum, int number, const char *BackTexture, const char *UpButtonTexture, const char *DownButtonTexture, float CenterX, float CenterZ, float voffset, const char *direction, float BackWidth, float BackHeight, bool ShowBack, float tw, float th);
42 void Enabled(bool value);
43 void Call(int direction); //-1 is down, 1 is up
44 void Press(int index);
47 csRef<iMeshWrapper> CallButtonBackMesh; //call button mesh object
48 csRef<iMeshWrapper> CallButtonMesh; //call button mesh object
49 csRef<iThingFactoryState> CallButton_back_state;
50 csRef<iThingFactoryState> CallButton_state;