|
DI-Guy Lua AI SDK
|
Public Member Functions | |
Standard package-level functions | |
High-level controller for use in Urban Traffic demo This is a controller class for the Urban Demo. Responsible for UI controls and for managing some crowds and groups of objects. | |
| init_package () | |
| This function is called at time 0. More... | |
| reset_package () | |
| Standard mind function. More... | |
| update_package () | |
| Standard mind function. More... | |
| draw_package () | |
| Standard mind function. More... | |
| init_vehicles () | |
| Init vehicle crowds. More... | |
| init_vehicle_crowd (name) | |
| Sets up an Urban Traffic demo vehicle crowd. More... | |
| process_messages (message_object) | |
| Main message-processing function. More... | |
| process_signals (message_object) | |
| Standard signal handler. More... | |
| trigger_explosion_placement () | |
| Allow user to cause an explosion. More... | |
| trigger_end_emergency () | |
| Cause the current emergency to end. More... | |
| trigger_church () | |
| Send out a signal that it's time for church. Some pedestrians will go to a church. More... | |
| trigger_iguy () | |
| Put the camera in I-Guy mode. More... | |
| trigger_police_chase () | |
| Begin a scripted police chase scenario. More... | |
| entry_point () | |
| Standard base state. More... | |
| do_explosion (target_vec, object, crater) | |
| Causes a large explosion. More... | |
| register_dead_character (dead_character) | |
| Register a character as being dead (or badly injured) More... | |
| get_dead_character () | |
| Returns an incapacitated character who isn't being attended to. More... | |
| add_helper () | |
| Register a character as attending the dead/injured. More... | |
Public Member Functions inherited from luaUIStateMachine | |
| init_package () | |
| this function is called at time 0 More... | |
| reset_package () | |
| this function is called at reset More... | |
| update_package () | |
| draw_package () | |
| an active draw function, set self.draw_ui to start seeing something More... | |
| begin_state (_name) | |
| Convenience function for storing the current state in the object. More... | |
| state_manager (sender, message_type, message, params) | |
| This is the main entry point from C++ into the lua framework. More... | |
| sleep (duration) | |
| This is a simple sleep function. More... | |
| wait_for_multichoice (...) | |
| This is a wait function that will wait indefinately and only wake up when one of a few specific messages are recieved. More... | |
| wait_for_message (message_to_wait_for) | |
| a function that waits for an explicit message More... | |
| show_ui_message (message) | |
| Puts a message up on screen with a label. More... | |
| hide_ui_message () | |
| get_user_selected_point (_options) | |
| sets up the ui for point selection More... | |
| get_user_selected_character (_options) | |
| sets up the ui for point selection More... | |
| luaUrbanController::add_helper | ( | ) |
Register a character as attending the dead/injured.
| luaUrbanController::do_explosion | ( | target_vec | , |
| object | , | ||
| crater | |||
| ) |
Causes a large explosion.
| luaUrbanController::draw_package | ( | ) |
Standard mind function.
| luaUrbanController::entry_point | ( | ) |
Standard base state.
| luaUrbanController::get_dead_character | ( | ) |
Returns an incapacitated character who isn't being attended to.
| luaUrbanController::init_package | ( | ) |
This function is called at time 0.
| luaUrbanController::init_vehicle_crowd | ( | name | ) |
Sets up an Urban Traffic demo vehicle crowd.
Sets up a vehicle crowd so its members are on the correct path and are each pursuing the vehicle in front of them.
| name | vehicle crowd name |
| luaUrbanController::init_vehicles | ( | ) |
Init vehicle crowds.
| luaUrbanController::process_messages | ( | message_object | ) |
Main message-processing function.
| message_object | standard message object |
| luaUrbanController::process_signals | ( | message_object | ) |
Standard signal handler.
| luaUrbanController::register_dead_character | ( | dead_character | ) |
Register a character as being dead (or badly injured)
| luaUrbanController::reset_package | ( | ) |
Standard mind function.
| luaUrbanController::trigger_church | ( | ) |
Send out a signal that it's time for church. Some pedestrians will go to a church.
| luaUrbanController::trigger_end_emergency | ( | ) |
Cause the current emergency to end.
| luaUrbanController::trigger_explosion_placement | ( | ) |
Allow user to cause an explosion.
| luaUrbanController::trigger_iguy | ( | ) |
Put the camera in I-Guy mode.
| luaUrbanController::trigger_police_chase | ( | ) |
Begin a scripted police chase scenario.
| luaUrbanController::update_package | ( | ) |
Standard mind function.