Mallet Engine  2
Entity-Component based game engine, written in Java.
 All Classes Namespaces Files Functions Variables
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
com.linxonline.mallet.entity.CheckBoxComponent Class Reference
Inheritance diagram for com.linxonline.mallet.entity.CheckBoxComponent:
Inheritance graph
[legend]
Collaboration diagram for com.linxonline.mallet.entity.CheckBoxComponent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CheckBoxComponent ()
void setBoxDimension (final float _width, final float _height)
final void setEventComponent (final EventComponent _component)
final void setRenderComponent (final RenderComponent _component)
final void addMessage (final Event _message)
void update (final float _dt)
void passMessages ()
void tick ()

Public Attributes

RenderComponent renderComponent = null
EventComponent eventComponent = null
String defaultBox = null
String defaultRollover = null
String defaultCheck = null
Vector2 boxDim = new Vector2( 64, 128 )

Protected Member Functions

void updateInputs ()
void pressed (final float _x, final float _y)
void released (final float _x, final float _y)
final void setBox (final String _texture, final int _layer)

Protected Attributes

boolean isPressed = false
Vector2 mouse = new Vector2()
Vector2 offset = null
ArrayList< Eventevents = new ArrayList<Event>()

Constructor & Destructor Documentation


Member Function Documentation

void com.linxonline.mallet.entity.CheckBoxComponent.pressed ( final float  _x,
final float  _y 
) [protected]
void com.linxonline.mallet.entity.CheckBoxComponent.released ( final float  _x,
final float  _y 
) [protected]
final void com.linxonline.mallet.entity.CheckBoxComponent.setBox ( final String  _texture,
final int  _layer 
) [protected]
void com.linxonline.mallet.entity.CheckBoxComponent.setBoxDimension ( final float  _width,
final float  _height 
)

Member Data Documentation

ArrayList<Event> com.linxonline.mallet.entity.CheckBoxComponent.events = new ArrayList<Event>() [protected]
Vector2 com.linxonline.mallet.entity.CheckBoxComponent.mouse = new Vector2() [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables