Class OctreeObjectView
java.lang.Object
gaiasky.scene.view.AbstractView
gaiasky.scene.view.PositionView
gaiasky.scene.view.OctreeObjectView
- All Implemented Interfaces:
IOctreeObject, IPosition
-
Field Summary
FieldsFields inherited from class AbstractView
entity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()protected voidContains actions to take after a new entity has been set.protected voidentityCheck(com.badlogic.ashley.core.Entity entity) Checks whether the given entity is suitable for this view.protected voidThis method is called when the entity of this view is cleared.intvoidsetOctant(OctreeNode octreeNode) Methods inherited from class PositionView
componentsCheck, getPosition, getVelocityMethods inherited from class AbstractView
check, clearEntity, getEntity, isEmpty, isValid, setEntityMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:AbstractViewChecks whether the given entity is suitable for this view. This method should throw aRuntimeExceptionif the entity is not suitable.- Overrides:
entityCheckin classPositionView- Parameters:
entity- The entity.
-
entityChanged
protected void entityChanged()Description copied from class:AbstractViewContains actions to take after a new entity has been set. This method is typically used to initialize the view components.- Overrides:
entityChangedin classPositionView
-
entityCleared
protected void entityCleared()Description copied from class:AbstractViewThis method is called when the entity of this view is cleared. It should set all component references to null.- Overrides:
entityClearedin classPositionView
-
getStarCount
public int getStarCount()- Specified by:
getStarCountin interfaceIOctreeObject
-
dispose
public void dispose()- Specified by:
disposein interfaceIOctreeObject
-
setOctant
-