SubSystemFrameContext

indigo.shared.subsystems.SubSystemFrameContext
See theSubSystemFrameContext companion object
final class SubSystemFrameContext(val gameTime: GameTime, val dice: Dice, val inputState: InputState, val boundaryLocator: BoundaryLocator)

Similar to [FrameContext] but without access to start up data. The SubSystemFrameContext is the context in which the current frame will be processed. In includes values that are unique to this frame, and also globally available services.

Value parameters

boundaryLocator

A service that can be interogated for the calculated dimensions of screen elements.

dice

A psuedorandom number generator, made predicatable/reproducable by being seeded on the current running time.

gameTime

A sampled instance of time that you should use everywhere that you need a time value.

inputState

A snapshot of the state of the various input methods, also allows input mapping of combinations of inputs.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def bounds(sceneGraphNode: SceneNode): Rectangle
def findBounds(sceneGraphNode: SceneNode): Option[Rectangle]