RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.game.world.object.GameObject Interface Reference

Represents a game object. More...

Inheritance diagram for com.runehive.game.world.object.GameObject:
Collaboration diagram for com.runehive.game.world.object.GameObject:

Public Member Functions

boolean active ()
 Determines if this object is active on the world.
int distance ()
GameObjectDefinition getDefinition ()
 Gets the object definition.
ObjectDirection getDirection ()
 Gets the rotation.
GenericAttributes getGenericAttributes ()
 Gets the generic attributes.
default int getId ()
 Gets the object id.
default int getInstancedHeight ()
ObjectType getObjectType ()
 Gets the object type.
Position getPosition ()
 Gets the regional location.
int length ()
 Gets the length.
void register ()
 Registers the game object.
void rotate (ObjectDirection direction)
void transform (int id)
void unregister ()
 Unregisters the game object.
int width ()
 Gets the width.
Public Member Functions inherited from com.runehive.game.world.Interactable
default int getHeight ()
default int getX ()
default int getY ()

Additional Inherited Members

Static Public Member Functions inherited from com.runehive.game.world.Interactable
static Interactable create (Position position)
 Creates a new instance of an Interactable.
static Interactable create (Position position, int width, int length)
 Creates a new instance of an Interactable.

Detailed Description

Represents a game object.

Author
Michael | Chex

Definition at line 13 of file GameObject.java.

Member Function Documentation

◆ active()

boolean com.runehive.game.world.object.GameObject.active ( )

Determines if this object is active on the world.

Implemented in com.runehive.game.world.object.CustomGameObject, and com.runehive.game.world.object.StaticGameObject.

◆ distance()

int com.runehive.game.world.object.GameObject.distance ( )

◆ getDefinition()

GameObjectDefinition com.runehive.game.world.object.GameObject.getDefinition ( )

Gets the object definition.

Implemented in com.runehive.game.world.object.CustomGameObject, and com.runehive.game.world.object.StaticGameObject.

Referenced by getId().

Here is the caller graph for this function:

◆ getDirection()

ObjectDirection com.runehive.game.world.object.GameObject.getDirection ( )

◆ getGenericAttributes()

GenericAttributes com.runehive.game.world.object.GameObject.getGenericAttributes ( )

◆ getId()

default int com.runehive.game.world.object.GameObject.getId ( )

◆ getInstancedHeight()

default int com.runehive.game.world.object.GameObject.getInstancedHeight ( )

Implemented in com.runehive.game.world.object.CustomGameObject.

Definition at line 15 of file GameObject.java.

15 {
16 return Entity.DEFAULT_INSTANCE;
17 }

References com.runehive.game.world.entity.Entity.DEFAULT_INSTANCE.

Referenced by com.runehive.game.world.object.StaticGameObject.register(), and com.runehive.game.world.object.StaticGameObject.unregister().

Here is the caller graph for this function:

◆ getObjectType()

ObjectType com.runehive.game.world.object.GameObject.getObjectType ( )

◆ getPosition()

Position com.runehive.game.world.object.GameObject.getPosition ( )

◆ length()

int com.runehive.game.world.object.GameObject.length ( )

◆ register()

void com.runehive.game.world.object.GameObject.register ( )

Registers the game object.

Implemented in com.runehive.game.world.object.CustomGameObject, and com.runehive.game.world.object.StaticGameObject.

Referenced by com.runehive.content.wintertodt.Wintertodt.attackPyromancers(), and com.runehive.content.wintertodt.Wintertodt.breakBrazier().

Here is the caller graph for this function:

◆ rotate()

void com.runehive.game.world.object.GameObject.rotate ( ObjectDirection direction)

◆ transform()

void com.runehive.game.world.object.GameObject.transform ( int id)

◆ unregister()

void com.runehive.game.world.object.GameObject.unregister ( )

Unregisters the game object.

Implemented in com.runehive.game.world.object.CustomGameObject, and com.runehive.game.world.object.StaticGameObject.

Referenced by com.runehive.content.wintertodt.Wintertodt.attackPyromancers(), and com.runehive.content.wintertodt.Wintertodt.breakBrazier().

Here is the caller graph for this function:

◆ width()

int com.runehive.game.world.object.GameObject.width ( )

The documentation for this interface was generated from the following file: