NavContext

Engine/source/navigation/navContext.h

Implements the rcContext interface in Torque.

More...

Private Attributes

mTimers [RC_MAX_TIMERS][2]

Store start time and final time for each timer.

Public Functions

Default constructor.

log(const rcLogCategory category, const String & msg)

Protected Functions

int
doGetAccumulatedTime(const rcTimerLabel label)

Returns the total accumulated time of the specified performance timer.

doLog(const rcLogCategory category, const char * msg, const int len)

Logs a message.

Clears all log entries.

Clears all timers. (Resets all to unused.)

doStartTimer(const rcTimerLabel label)

Starts the specified performance timer.

doStopTimer(const rcTimerLabel label)

Stops the specified performance timer.

Detailed Description

Implements the rcContext interface in Torque.

Private Attributes

S32 mTimers [RC_MAX_TIMERS][2]

Store start time and final time for each timer.

Public Functions

NavContext()

Default constructor.

log(const rcLogCategory category, const String & msg)

Protected Functions

doGetAccumulatedTime(const rcTimerLabel label)

Returns the total accumulated time of the specified performance timer.

Parameters:

label

The category of the timer.

return:

The accumulated time of the timer, or -1 if timers are disabled or the timer has never been started.

doLog(const rcLogCategory category, const char * msg, const int len)

Logs a message.

Parameters:

category

The category of the message.

msg

The formatted message.

len

The length of the formatted message.

doResetLog()

Clears all log entries.

doResetTimers()

Clears all timers. (Resets all to unused.)

doStartTimer(const rcTimerLabel label)

Starts the specified performance timer.

Parameters:

label

The category of timer.

doStopTimer(const rcTimerLabel label)

Stops the specified performance timer.

Parameters:

label

The category of the timer.