Package com.banuba.sdk.scene
Class Entity.CppProxy
java.lang.Object
com.banuba.sdk.scene.Entity.CppProxy
- All Implemented Interfaces:
Entity
- Enclosing interface:
- Entity
public static final class Entity.CppProxy extends java.lang.Object implements Entity
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.banuba.sdk.scene.Entity
Entity.CppProxy
-
Method Summary
Modifier and Type Method Description void
_djinni_private_destroy()
void
addChild(Entity child)
void
addComponent(Component component)
void
addIntoLayer(Layer layer)
void
clearChildren()
static Entity
create(java.lang.String name)
protected void
finalize()
Entity
findChildByName(java.lang.String entityName)
Perform depth-first traverse of entity tree.java.util.ArrayList<Entity>
getChildren()
Component
getComponent(ComponentType type)
Layer
getLayer()
java.lang.String
getName()
Entity
getParent()
boolean
hasComponent(ComponentType type)
boolean
isActive()
void
removeChild(Entity child)
void
removeComponent(Component component)
void
removeFromLayer()
void
setActive(boolean active)
void
setName(java.lang.String name)
Set a new name to the entity.Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
_djinni_private_destroy
public void _djinni_private_destroy() -
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
setName
public void setName(java.lang.String name)Description copied from interface:Entity
Set a new name to the entity. Name could be empty. -
getName
public java.lang.String getName() -
addChild
-
removeChild
- Specified by:
removeChild
in interfaceEntity
-
getChildren
- Specified by:
getChildren
in interfaceEntity
-
clearChildren
public void clearChildren()- Specified by:
clearChildren
in interfaceEntity
-
findChildByName
Description copied from interface:Entity
Perform depth-first traverse of entity tree. Return first found child with name `entityName` or NULL if such an entity doesn't exist.- Specified by:
findChildByName
in interfaceEntity
-
getParent
-
setActive
public void setActive(boolean active) -
isActive
public boolean isActive() -
addIntoLayer
- Specified by:
addIntoLayer
in interfaceEntity
-
removeFromLayer
public void removeFromLayer()- Specified by:
removeFromLayer
in interfaceEntity
-
getLayer
-
addComponent
- Specified by:
addComponent
in interfaceEntity
-
hasComponent
- Specified by:
hasComponent
in interfaceEntity
-
getComponent
- Specified by:
getComponent
in interfaceEntity
-
removeComponent
- Specified by:
removeComponent
in interfaceEntity
-
create
-