org.vizzini.example.qubic.ui
Class BoxTokenUI

java.lang.Object
  extended by org.vizzini.ui.graphics.shape.AbstractShape
      extended by org.vizzini.ui.graphics.shape.AnchorShape
          extended by org.vizzini.example.qubic.ui.BoxTokenUI
All Implemented Interfaces:
Comparable, IStateful, ITokenUI, IShape

public class BoxTokenUI
extends AnchorShape
implements ITokenUI

Provides functionality for a Qubic box token user interface in the game framework. This shape extends AnchorShape in order to raise the box to board level.

Since:
v0.2
Version:
v0.3
Author:
Jeffrey M. Thompson

Field Summary
 
Fields inherited from class org.vizzini.ui.graphics.shape.AbstractShape
_isWireframe, _points, _screenCenter, _screenPoints, _shapeGroup, _zNormal
 
Constructor Summary
BoxTokenUI()
          Construct this object.
BoxTokenUI(ITeam team, double magnify)
          Construct this object.
 
Method Summary
 void configure(Properties properties, int index)
          Configure this token.
 IToken getToken()
          Return this token's agent.
 void setToken(IToken token)
          Set the associated token.
 
Methods inherited from class org.vizzini.ui.graphics.shape.AnchorShape
drawOnSolid, drawOnWireframe
 
Methods inherited from class org.vizzini.ui.graphics.shape.AbstractShape
add, clear, compareTo, computeCenteredScreenPoints, computeNormalZComponent, computeScreenCenter, computeScreenPoints, contains, createState, createStatefulSupport, drawOn, drawOn, getAbsoluteState, getBounds, getChildren, getColor, getColorForIntensity, getDepth, getDimensions, getHeight, getMinDimension, getName, getScreenCenter, getShapeGroup, getState, getStatefulParent, getTextureFilepath, getWidth, isInFrontOf, isLightSource, isTextureFilepathSet, isVisible, isWireframe, remove, setColor, setLightSource, setName, setStatefulParent, setTextureFilepath, setVisible, setWireframe, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.vizzini.math.IStateful
getAbsoluteState, getState, getStatefulParent, setStatefulParent
 

Constructor Detail

BoxTokenUI

public BoxTokenUI()
Construct this object.

Since:
v0.2

BoxTokenUI

public BoxTokenUI(ITeam team,
                  double magnify)
Construct this object.

Since:
v0.2
Method Detail

configure

public void configure(Properties properties,
                      int index)
               throws InstantiationException,
                      IllegalAccessException
Configure this token.

Specified by:
configure in interface ITokenUI
Parameters:
properties - Source of configuration information.
index - Index of this token's properties.
Throws:
InstantiationException
IllegalAccessException
Since:
v0.3

getToken

public IToken getToken()
Return this token's agent.

Specified by:
getToken in interface ITokenUI
Since:
v0.2

setToken

public void setToken(IToken token)
Set the associated token.

Specified by:
setToken in interface ITokenUI
Parameters:
token - The associated token.
Since:
v0.2


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02