Package gaiasky.scene.view
Class OctreeObjectView
java.lang.Object
gaiasky.scene.view.AbstractView
gaiasky.scene.view.PositionView
gaiasky.scene.view.OctreeObjectView
- All Implemented Interfaces:
IOctreeObject
,IPosition
-
Field Summary
Fields inherited from class gaiasky.scene.view.AbstractView
entity
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
protected void
Contains actions to take after a new entity has been set.protected void
entityCheck
(com.badlogic.ashley.core.Entity entity) Checks whether the given entity is suitable for this view.protected void
This method is called when the entity of this view is cleared.int
void
setOctant
(OctreeNode octreeNode) Methods inherited from class gaiasky.scene.view.PositionView
componentsCheck, getPosition, getVelocity
Methods inherited from class gaiasky.scene.view.AbstractView
check, clearEntity, getEntity, isEmpty, isValid, setEntity
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface gaiasky.util.tree.IOctreeObject
getPosition
-
Field Details
-
set
-
-
Constructor Details
-
OctreeObjectView
public OctreeObjectView(com.badlogic.ashley.core.Entity entity)
-
-
Method Details
-
entityCheck
protected void entityCheck(com.badlogic.ashley.core.Entity entity) Description copied from class:AbstractView
Checks whether the given entity is suitable for this view. This method should throw aRuntimeException
if the entity is not suitable.- Overrides:
entityCheck
in classPositionView
- Parameters:
entity
- The entity.
-
entityChanged
protected void entityChanged()Description copied from class:AbstractView
Contains actions to take after a new entity has been set. This method is typically used to initialize the view components.- Overrides:
entityChanged
in classPositionView
-
entityCleared
protected void entityCleared()Description copied from class:AbstractView
This method is called when the entity of this view is cleared. It should set all component references to null.- Overrides:
entityCleared
in classPositionView
-
getStarCount
public int getStarCount()- Specified by:
getStarCount
in interfaceIOctreeObject
-
dispose
public void dispose()- Specified by:
dispose
in interfaceIOctreeObject
-
setOctant
-