Bandidos
Public Member Functions | List of all members
com.mygdx.game.engine.resources.PhysicsWorld Class Reference
Inheritance diagram for com.mygdx.game.engine.resources.PhysicsWorld:
com.mygdx.game.engine.events.IEventReceiver

Public Member Functions

 PhysicsWorld ()
 
void update (float dt)
 
World getWorld ()
 
void render (RenderComponents rcs)
 
void clean ()
 
void onReceiveEvent (Event event)
 

Detailed Description

This class handles the Physics of the 'world'. Right now it will only handle Collision. It will create the bodies needed for the entities for collision to work.

Author
Djamali Jones

Constructor & Destructor Documentation

◆ PhysicsWorld()

com.mygdx.game.engine.resources.PhysicsWorld.PhysicsWorld ( )

Member Function Documentation

◆ clean()

void com.mygdx.game.engine.resources.PhysicsWorld.clean ( )

Cleans this class. This method clears everything that is no longer needed for this class when called.

◆ getWorld()

World com.mygdx.game.engine.resources.PhysicsWorld.getWorld ( )

Returns the world of the PhysicsWorld

Returns
World instance created by this PhysicsWorld class

◆ onReceiveEvent()

void com.mygdx.game.engine.resources.PhysicsWorld.onReceiveEvent ( Event  event)

This will be triggered when an event has been fired of type which this implementing class was listening to.

Parameters
eventwhich has one of the event types which is listened to.

Implements com.mygdx.game.engine.events.IEventReceiver.

◆ render()

void com.mygdx.game.engine.resources.PhysicsWorld.render ( RenderComponents  rcs)

◆ update()

void com.mygdx.game.engine.resources.PhysicsWorld.update ( float  dt)

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