C4 Engine Terathon Software C4 Engine API Documentation

• Controller System

API Links
Developer Links

Controller::Sleep

Defined in:  C4Controller.h
Puts a controller to sleep.
Prototype

virtual void Sleep(void);

Description
The Sleep function puts a controller to sleep so that it receives no processing time. The Controller::Move function is not called for controllers that are currently in the sleeping state. A controller can be returned to the non-sleeping state by calling the Controller::Wake function.

Any override of the Sleep function should always call the base class counterpart.
See Also

Controller::Wake

Controller::Move