org.vizzini.ui.game.boardgame.chess.standardtoken
Class KnightShape

java.lang.Object
  extended by org.vizzini.ui.graphics.shape.AbstractShape
      extended by org.vizzini.ui.graphics.shape.ExtrudedShape
          extended by org.vizzini.ui.game.boardgame.chess.PieceShape
              extended by org.vizzini.ui.game.boardgame.chess.standardtoken.KnightShape
All Implemented Interfaces:
Comparable, IStateful, ITokenUI, IShape

public final class KnightShape
extends PieceShape

Provides a shape class for a chess Knight.

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

Field Summary
 
Fields inherited from class org.vizzini.ui.game.boardgame.chess.PieceShape
_segments
 
Fields inherited from class org.vizzini.ui.graphics.shape.ExtrudedShape
_beginCap, _endCap, _isHighlighted, _polygons, _spineLength
 
Fields inherited from class org.vizzini.ui.graphics.shape.AbstractShape
_isWireframe, _points, _screenCenter, _screenPoints, _shapeGroup, _zNormal
 
Constructor Summary
KnightShape(boolean faceRight, ITeam team)
          Construct this object with the given team and a magnification of 1.0.
KnightShape(boolean faceRight, ITeam team, double magnify)
          Construct this object with the given parameters.
 
Method Summary
 
Methods inherited from class org.vizzini.ui.game.boardgame.chess.PieceShape
configure, getAgent, getTeam, getTeamColor, getTeamHighlight, getToken, initPoints, preprocessSpine, setAgent, setTeamColor, setTeamHighlight, setToken
 
Methods inherited from class org.vizzini.ui.graphics.shape.ExtrudedShape
computePolygonShapes, computeScreenPoints, contains, drawOn, initPoints, processPolygonShape, releasePolygonShapes, setBeginCap, setEndCap, setHighlightColor, setHighlighted
 
Methods inherited from class org.vizzini.ui.graphics.shape.AbstractShape
add, clear, compareTo, computeCenteredScreenPoints, computeNormalZComponent, computeScreenCenter, createState, createStatefulSupport, drawOn, drawOnSolid, drawOnWireframe, 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

KnightShape

public KnightShape(boolean faceRight,
                   ITeam team)
Construct this object with the given team and a magnification of 1.0.

Parameters:
faceRight - Flag indicating if the Knight should face right.
team - The team.
Since:
v0.3

KnightShape

public KnightShape(boolean faceRight,
                   ITeam team,
                   double magnify)
Construct this object with the given parameters.

Parameters:
faceRight - Flag indicating if the Knight should face right.
team - The team.
magnify - The magnification.
Since:
v0.3


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02