Class Index | File Index

Classes


Class ROT.Engine

Asynchronous main loop
Defined in: <rot.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
addActor(actor)
 
Remove all actors
 
lock()
Interrupt the engine by an asynchronous action
 
removeActor(actor)
Remove a previously added actor
 
Start the main loop.
 
Resume execution (paused by a previous lock)
Class Detail
ROT.Engine()
Method Detail
addActor(actor)
Parameters:
{object} actor
Anything with "getSpeed" and "act" methods

clear()
Remove all actors

lock()
Interrupt the engine by an asynchronous action

removeActor(actor)
Remove a previously added actor
Parameters:
{object} actor

start()
Start the main loop. When this call returns, the loop is locked.

unlock()
Resume execution (paused by a previous lock)

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Mar 08 2013 11:07:30 GMT+0100 (CET)