59 Wall* AddFloor(
const std::string &name,
const std::string &texture,
Real thickness,
Real x1,
Real z1,
Real x2,
Real z2,
Real voffset1,
Real voffset2,
bool reverse_axis,
bool texture_direction,
Real tw,
Real th,
bool isexternal,
bool legacy_behavior =
false);
60 Wall* AddInterfloorFloor(
const std::string &name,
const std::string &texture,
Real thickness,
Real x1,
Real z1,
Real x2,
Real z2,
Real voffset1,
Real voffset2,
bool reverse_axis,
bool texture_direction,
Real tw,
Real th,
bool legacy_behavior =
false);
61 Wall* AddWall(
const std::string &name,
const std::string &texture,
Real thickness,
Real x1,
Real z1,
Real x2,
Real z2,
Real height_in1,
Real height_in2,
Real voffset1,
Real voffset2,
Real tw,
Real th,
bool isexternal);
62 Wall* AddInterfloorWall(
const std::string &name,
const std::string &texture,
Real thickness,
Real x1,
Real z1,
Real x2,
Real z2,
Real height_in1,
Real height_in2,
Real voffset1,
Real voffset2,
Real tw,
Real th);
63 void Enabled(
bool value);
65 CallStation* AddCallButtons(
int controller,
const std::string &sound_file_up,
const std::string &sound_file_down,
const std::string &BackTexture,
const std::string &UpButtonTexture,
const std::string &UpButtonTexture_Lit,
const std::string &DownButtonTexture,
const std::string &DownButtonTexture_Lit,
Real CenterX,
Real CenterZ,
Real voffset,
const std::string &direction,
Real BackWidth,
Real BackHeight,
bool ShowBack,
Real tw,
Real th);
67 void Cut(
const Vector3 &start,
const Vector3 &end,
bool cutwalls,
bool cutfloors,
bool fast,
int checkwallnumber = 0,
bool prepare =
false);
68 void CutAll(
const Vector3 &start,
const Vector3 &end,
bool cutwalls,
bool cutfloors,
bool prepare =
false);
69 void AddGroupFloor(
int number);
70 void RemoveGroupFloor(
int number);
71 void EnableGroup(
bool value);
72 bool IsInGroup(
int floor);
73 Door* AddDoor(std::string name,
const std::string &open_sound,
const std::string &close_sound,
bool open_state,
const std::string &texture,
const std::string &side_texture,
Real thickness,
const std::string &face_direction,
const std::string &open_direction,
bool rotate,
Real open_speed,
Real close_speed,
Real CenterX,
Real CenterZ,
Real width,
Real height,
Real voffset,
Real tw,
Real th,
Real side_tw,
Real side_th,
bool external =
false);
74 Door* CreateDoor(std::string name,
const std::string &open_sound,
const std::string &close_sound,
bool rotate);
75 Door* GetDoor(
const std::string &name);
76 bool CalculateAltitude();
77 void EnableColumnFrame(
bool value);
78 void EnableInterfloor(
bool value);
79 Wall* ColumnWallBox(
const std::string &name,
const std::string &texture,
Real x1,
Real x2,
Real z1,
Real z2,
Real height_in,
Real voffset,
Real tw,
Real th,
bool inside,
bool outside,
bool top,
bool bottom);
80 Wall* ColumnWallBox2(
const std::string &name,
const std::string &texture,
Real CenterX,
Real CenterZ,
Real WidthX,
Real LengthZ,
Real height_in,
Real voffset,
Real tw,
Real th,
bool inside,
bool outside,
bool top,
bool bottom);
81 FloorIndicator* AddFloorIndicator(
int elevator,
int car,
bool relative,
const std::string &texture_prefix,
const std::string &blank_texture,
const std::string &direction,
Real CenterX,
Real CenterZ,
Real width,
Real height,
Real voffset);
82 void UpdateFloorIndicators(
int elevator);
83 void UpdateFloorIndicators();
84 void UpdateDirectionalIndicators(
int elevator);
85 void UpdateDirectionalIndicators();
86 DirectionalIndicator* AddDirectionalIndicator(
int elevator,
int car,
bool relative,
bool active_direction,
bool single,
bool vertical,
const std::string &BackTexture,
const std::string &uptexture,
const std::string &uptexture_lit,
const std::string &downtexture,
const std::string &downtexture_lit,
Real CenterX,
Real CenterZ,
Real voffset,
const std::string &direction,
Real BackWidth,
Real BackHeight,
bool ShowBack,
Real tw,
Real th);
87 void SetDirectionalIndicators(
int elevator,
int car,
bool UpLight,
bool DownLight);
89 std::vector<int> GetCallStations(
int elevator);
90 CallStation* GetCallStationForElevator(
int elevator);
92 void AddFillerWalls(
const std::string &texture,
Real thickness,
Real CenterX,
Real CenterZ,
Real width,
Real height,
Real voffset,
bool direction,
Real tw,
Real th,
bool isexternal);
93 Sound* AddSound(
const std::string &name,
const std::string &filename,
Vector3 position,
bool loop =
true,
Real volume = 1.0,
int speed = 100,
Real min_distance = 1.0,
Real max_distance = -1.0,
Real doppler_level = 0.0,
Real cone_inside_angle = 360,
Real cone_outside_angle = 360,
Real cone_outside_volume = 1.0,
Vector3 direction =
Vector3(0, 0, 0));
94 Reverb* AddReverb(
const std::string &name,
const std::string &type,
const Vector3 &position,
Real min_distance,
Real max_distance);
95 void Report(
const std::string &message);
96 bool ReportError(
const std::string &message);
97 Real GetBase(
bool relative =
false);
98 Door* GetDoor(
int number);
102 void RemoveDoor(
Door *door);
103 void RemoveSound(
Sound *sound);
104 void RemoveReverb(
Reverb *reverb);
105 void RemoveLight(
Light *light);
106 void RemoveModel(
Model *model);
109 void RemoveControl(
Control *control);
110 void RemoveTrigger(
Trigger *trigger);
112 void RemoveEscalator(
Escalator *escalator);
114 Light* AddLight(
const std::string &name,
int type);
115 Light* GetLight(
const std::string &name);
116 Model* AddModel(
const std::string &name,
const std::string &filename,
bool center,
Vector3 position,
Vector3 rotation,
Real max_render_distance = 0,
Real scale_multiplier = 1,
bool enable_physics =
false,
Real restitution = 0,
Real friction = 0,
Real mass = 0);
117 void AddModel(
Model *model);
118 Primitive* AddPrimitive(
const std::string &name);
122 void ReplaceTexture(
const std::string &oldtexture,
const std::string &newtexture);
123 Control* AddControl(
const std::string &name,
const std::string &sound,
const std::string &direction,
Real CenterX,
Real CenterZ,
Real width,
Real height,
Real voffset,
int selection_position, std::vector<std::string> &action_names, std::vector<std::string> &textures);
124 Trigger* AddTrigger(
const std::string &name,
const std::string &sound_file,
Vector3 &area_min,
Vector3 &area_max, std::vector<std::string> &action_names);
126 Escalator* AddEscalator(
const std::string &name,
int run,
Real speed,
const std::string &sound_file,
const std::string &riser_texture,
const std::string &tread_texture,
const std::string &direction,
Real CenterX,
Real CenterZ,
Real width,
Real risersize,
Real treadsize,
int num_steps,
Real voffset,
Real tw,
Real th);
127 MovingWalkway* AddMovingWalkway(
const std::string &name,
int run,
Real speed,
const std::string &sound_file,
const std::string &texture,
const std::string &direction,
Real CenterX,
Real CenterZ,
Real width,
Real treadsize,
int num_steps,
Real voffset,
Real tw,
Real th);
128 std::vector<Sound*> GetSound(
const std::string &name);
129 Reverb* GetReverb(
const std::string &name);
130 void SetAltitude(
Real altitude);
131 void ShowInfo(
bool detailed =
true,
bool display_header =
true);
132 void GetElevatorList(std::vector<int> &listing,
bool get_locals =
true,
bool get_express =
true,
bool get_service =
true);
133 void GetStairwellList(std::vector<int> &listing);
134 void GetShaftList(std::vector<int> &listing);
135 ElevatorRoute* GetDirectRoute(
int DestinationFloor, std::string ElevatorType);
136 std::vector<int> GetDirectFloors(
bool include_service);
137 Model* GetModel(std::string name);
138 Primitive* GetPrimitive(std::string name);
140 RevolvingDoor* AddRevolvingDoor(std::string name,
bool run,
const std::string &soundfile,
const std::string &texture,
Real thickness,
bool clockwise,
int segments,
Real speed,
Real rotation,
Real CenterX,
Real CenterZ,
Real width,
Real height,
Real voffset,
Real tw,
Real th,
bool external);
144 int GetCallStationCount();
145 int GetReverbCount();
146 Reverb* GetReverb(
int index);