public class BasicSpaceState extends SpaceState<CellGame,BasicSpaceState,BasicSpaceThinker>
A BasicSpaceState is a type of SpaceState that uses BasicSpaceThinkers, which have no special capabilities, and treats its CellGame as a basic CellGame. It is designed to be easily extended by types of SpaceStates that do not require custom fields or methods to be automatically shared between themselves and their SpaceThinkers or CellGames.
SpaceState.DrawMode
Constructor and Description |
---|
BasicSpaceState(CellGame game,
int id,
long cellWidth,
long cellHeight,
SpaceState.DrawMode drawMode)
Constructs a BasicSpaceState of the specified CellGame with the specified
ID.
|
addObject, addSubThinkerActions, boundingBoxesMeet, clearEmptyCells, clearLayers, clearObjects, clearViewports, frameActions, getBeforeMovementEvents, getCellHeight, getCellWidth, getDrawMode, getHUD, getLayer, getNumLayers, getNumMobileObjects, getNumObjects, getNumViewports, getSpacePoint, getViewport, intersectingSolidObject, intersectingSolidObjects, isIntersectingSolidObject, isOverlappingObject, iteratingThroughMobileObjects, iteratingThroughObjects, loadArea, loadArea, mobileObjectIterator, nearestIntersectingSolidObject, nearestIntersectingSolidObject, nearestObject, nearestObject, nearestObjectWithinCircle, nearestObjectWithinCircle, nearestObjectWithinRectangle, nearestObjectWithinRectangle, nearestOverlappingObject, nearestOverlappingObject, objectIsWithinCircle, objectIsWithinCircle, objectIsWithinRectangle, objectIterator, objectsWithinCircle, objectsWithinCircle, objectsWithinRectangle, objectWithinCircle, objectWithinCircle, objectWithinRectangle, overlappingObject, overlappingObjects, rectangleIsVisible, removeAboveLine, removeBelowLine, removeLeftOfLine, removeObject, removeOutsideRectangle, removeRectangle, removeRightOfLine, removeSubThinkerActions, renderActions, setCellDimensions, setDrawMode, setHUD, setLayer, setViewport, solidBoundingBoxesMeet
addAnimInstance, addAnimInstance, bindFinishedActions, charDeletedActions, charTypedActions, clearAnimInstances, enteredActions, getAnimation, getAnimInstance, getEffectiveTimeFactor, getGame, getGameState, getID, getNumAnimInstances, getThis, isActive, leftActions, removeAnimInstance, setAnimation, setAnimInstance, stringBeganActions, stringCanceledActions, stringDeletedActions, stringFinishedActions
addSubThinker, clearLineages, clearSubThinkers, getFrameEvents, getGameClass, getNumSubThinkers, getStateClass, getSubThinkerClass, getTimeFactor, getTimerValue, iteratingThroughSubThinkers, removeLineage, removeSubThinker, setTimeFactor, setTimerValue, subThinkerIterator
public BasicSpaceState(CellGame game, int id, long cellWidth, long cellHeight, SpaceState.DrawMode drawMode)
game
- The CellGame to which this BasicSpaceState belongsid
- This BasicSpaceState's IDcellWidth
- The width of each of this BasicSpaceState's cellscellHeight
- The height of each of this BasicSpaceState's cellsdrawMode
- This BasicSpaceState's DrawMode