|
Classes | |
class | HTTPObject |
Allows communications between the game and a server using HTTP protocols. More... | |
class | RigidShape |
The RigidShape class implements rigid-body physics for DTS objects in the world. More... | |
class | RigidShapeData |
Defines the physics properties for an individual RigidShapeData physics object. More... | |
class | TCPObject |
Allows communications between the game and a server using TCP/IP protocols. More... | |
Modules | |
Localization | |
Classes and functions related Torque 3D networking. | |
Mac | |
Functionality exclusive to Torque on OSX. | |
Windows | |
Functionality exclusive to Torque on Windows. | |
Enumerations | |
enum | MBButtons { Ok, OkCancel, RetryCancel, SaveDontSave, SaveDontSaveCancel } |
Which buttons to display on a message box. More... | |
enum | MBIcons { Information, Warning, Stop, Question } |
What icon to show on a message box. More... | |
enum | MBReturnVal { OK, Cancelled, Retry, DontSave } |
Return value for messageBox() indicating which button was pressed by the user. More... | |
Functions | |
void | TCPObject::connect (string address) |
Connect to the given address. | |
void | TCPObject::disconnect () |
Disconnect from whatever this TCPObject is currently connected to, if anything. | |
bool | displaySplashWindow () |
Display a startup splash window suitable for showing while the engine still starts up. | |
int | getRealTime () |
Return the current real time in milliseconds. | |
int | getSimTime () |
Sim time is time since the game started. | |
bool | getWebDeployment () |
Test whether Torque is running in web-deployment mode. | |
void | gotoWebPage (string address) |
Open the given URL or file in the user's web browser. | |
bool | isDebugBuild () |
Test whether the engine has been compiled with TORQUE_DEBUG, i.e. if it includes debugging functionality. | |
bool | isShippingBuild () |
Test whether the engine has been compiled with TORQUE_SHIPPING, i.e. in a form meant for final release. | |
bool | isToolBuild () |
Test whether the engine has been compiled with TORQUE_TOOLS, i.e. if it includes tool-related functionality. | |
void | TCPObject::listen (int port) |
Start listening on the specified port for connections. | |
int | messageBox (string title, string message, MBButtons buttons=MBOkCancel, MBIcons icons=MIInformation) |
Display a modal message box using the platform's native message box implementation. | |
void | playJournal (string filename) |
Begin playback of a journal from a specified field. | |
void | quit () |
Shut down the engine and exit its process. | |
void | quitWithErrorMessage (string message) |
Display an error message box showing the given message and then shut down the engine and exit its process. | |
void | saveJournal (string filename) |
Save the journal to the specified file. | |
void | TCPObject::send (string data) |
Transmits the data string to the server. | |
bool | shellExecute (string executable, string args, string directory) |
Launches an outside executable or batch file. | |
Variables | |
const int | $MRCancel |
Determines the cancel button press state in a message box. | |
const int | $MRDontSave |
Determines the don't save button press state in a message box. | |
const int | $MROk |
Determines the ok button press state in a message box. | |
const int | $MRRetry |
Determines the retry button press state in a message box. | |
int | $platform::backgroundSleepTime |
Controls processor time usage when the game window is out of focus. | |
int | $platform::timeManagerProcessInterval |
Controls processor time usage when the game window is in focus. |
enum MBButtons |
enum MBIcons |
enum MBReturnVal |
Return value for messageBox() indicating which button was pressed by the user.
void TCPObject::connect | ( | string | address | ) | [inherited] |
Connect to the given address.
address | Server address to connect to. |
// Set the address. %address = "www.garagegames.com"; // Inform this TCPObject to connect to the specified address. %thisTCPObj.connect(%address);
void TCPObject::disconnect | ( | ) | [inherited] |
Disconnect from whatever this TCPObject is currently connected to, if anything.
// Inform this TCPObject to disconnect from anything it is currently connected to.
%thisTCPObj.disconnect();
bool displaySplashWindow | ( | ) |
Display a startup splash window suitable for showing while the engine still starts up.
int getRealTime | ( | ) |
Return the current real time in milliseconds.
Real time is platform defined; typically time since the computer booted.
int getSimTime | ( | ) |
Sim time is time since the game started.
Return the current sim time in milliseconds.
bool getWebDeployment | ( | ) |
Test whether Torque is running in web-deployment mode.
In this mode, Torque will usually run within a browser and certain restrictions apply (e.g. Torque will not be able to enter fullscreen exclusive mode).
void gotoWebPage | ( | string | address | ) |
Open the given URL or file in the user's web browser.
address | The address to open. If this is not prefixed by a protocol specifier ("...://"), then the function checks whether the address refers to a file or directory and if so, prepends "file://" to adress; if the file check fails, "http://" is prepended to address. |
gotoWebPage( "http://www.garagegames.com" );
bool isDebugBuild | ( | ) |
Test whether the engine has been compiled with TORQUE_DEBUG, i.e. if it includes debugging functionality.
bool isShippingBuild | ( | ) |
Test whether the engine has been compiled with TORQUE_SHIPPING, i.e. in a form meant for final release.
bool isToolBuild | ( | ) |
Test whether the engine has been compiled with TORQUE_TOOLS, i.e. if it includes tool-related functionality.
void TCPObject::listen | ( | int | port | ) | [inherited] |
Start listening on the specified port for connections.
port | Port for this TCPObject to start listening for connections on. |
// Set the port number list %portNumber = 80; // Inform this TCPObject to start listening at the specified port. %thisTCPObj.send(%portNumber);
int messageBox | ( | string | title, | |
string | message, | |||
MBButtons | buttons = MBOkCancel , |
|||
MBIcons | icons = MIInformation | |||
) |
Display a modal message box using the platform's native message box implementation.
title | The title to display on the message box window. | |
message | The text message to display in the box. | |
buttons | Which buttons to put on the message box. | |
icons | Which icon to show next to the message. |
messageBox( "Error", "" );
void playJournal | ( | string | filename | ) |
Begin playback of a journal from a specified field.
filename | Name and path of file journal file |
void quit | ( | ) |
Shut down the engine and exit its process.
This function cleanly uninitializes the engine and then exits back to the system with a process exit status indicating a clean exit.
void quitWithErrorMessage | ( | string | message | ) |
Display an error message box showing the given message and then shut down the engine and exit its process.
This function cleanly uninitialized the engine and then exits back to the system with a process exit status indicating an error.
message | The message to log to the console and show in an error message box. |
void saveJournal | ( | string | filename | ) |
Save the journal to the specified file.
void TCPObject::send | ( | string | data | ) | [inherited] |
Transmits the data string to the server.
data | The data string to send back to the server. |
// Set the command data %data = ""GET " @ $RSSFeed::serverURL @ " HTTP/1.0 Host: " @ $RSSFeed::serverName @ "\nUser-Agent: " @ $RSSFeed::userAgent @ "\n\r\n\r\n"" // Send the command back to the active server. %thisTCPObj.send(%data);
bool shellExecute | ( | string | executable, | |
string | args, | |||
string | directory | |||
) |
Launches an outside executable or batch file.
executable | Name of the executable or batch file | |
args | Optional list of arguments, in string format, to pass to the executable | |
directory | Optional string containing path to output or shell |
int $MRCancel |
Determines the cancel button press state in a message box.
int $MRDontSave |
Determines the don't save button press state in a message box.
int $MROk |
Determines the ok button press state in a message box.
int $MRRetry |
Determines the retry button press state in a message box.
int $platform::backgroundSleepTime |
Controls processor time usage when the game window is out of focus.
int $platform::timeManagerProcessInterval |
Controls processor time usage when the game window is in focus.