Class Index | File Index

Classes


Class VENISON.PROPERTIES.GraphicsProperty


Extends VENISON.PROPERTY.Property.
The fundamental property that every entity has. It is responsible for keeping the entity up to date in the viewport culling data structure.

It handles the following messages:

'setGraphicsLayer': Received by GraphicsProperty. Used to set the graphics layer.
content = layer

'setPosition': Received by GraphicsProperty and PhysicsProperty. Used to set the position of the entity.
content = {x: , y: } The new position

'setRotation': Received by GraphicsProperty and PhysicsProperty. Used to set the rotation of the entity.
content = rotation in radians

'setScale': Received by GraphicsProperty and PhysicsProperty. Used to scale the entity.
content = {x: , y: } The horizontal and vertical scale

Defined in: venison_engine.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Fields borrowed from class VENISON.PROPERTY.Property:
attributes, entity
Methods borrowed from class VENISON.PROPERTY.Property:
fnGetName, fnHandleMessage, fnOnAttached, fnOnFrame, fnOnLevelLoaded, fnOnRemoved, fnRegisterToMessages
Class Detail
VENISON.PROPERTIES.GraphicsProperty()

Documentation generated by JsDoc Toolkit 2.4.0 on Thu May 05 2011 18:47:29 GMT+0200 (CEST)