Jypeli 4
The simple game programming library
Suojatut jäsenfunktiot | Staattiset suojatut jäsenfunktiot | Ominaisuudet | Tapahtumat
PhysicsLogic luokkareferenssi

A physics logic is a way for the engine to effect object within the Update call. Gravity is a Example of a PhysicsLogic. Lisää...

Luokan PhysicsLogic luokkakaavio
IPhysicsEntity IPendable FrictionLogic ExplosionLogic GlobalFluidLogic GravityField GravityPointField GravityPointMass LineFluidLogic MoveToPointLogic RaySegmentsCollisionLogic VelocityLimitLogic

Lista kaikista jäsenistä.

Suojatut jäsenfunktiot

 PhysicsLogic (Lifespan lifetime)
abstract internal void RunLogic (TimeStep step)
virtual internal void BeforeAddCheck (PhysicsEngine engine)
 Before the item is allowed to be added to pending this method is called to throw any exceptions without corrupting the state of the Physics engine.
virtual void OnPending (EventArgs e)
virtual void OnAdded (EventArgs e)
virtual void OnRemoved (RemovedEventArgs e)
virtual internal void UpdateTime (TimeStep step)
virtual internal void AddBodyRange (List< Body > collection)
virtual internal void RemoveExpiredBodies ()
virtual internal void Clear ()

Staattiset suojatut jäsenfunktiot

static Lifespan GetLifeTime (Body body)

Ominaisuudet

virtual ReadOnlyCollection< BodyLogicBodies [get]
bool IsPending [get]
 Gets if it has been added the the Engine's PendingQueue, but not yet added to the engine.
bool IsAdded [get]
 Gets if the object has been added to the engine.
PhysicsEngine Engine [get]
 Gets The PhysicsEngine the object is currently in. Null if it is in none.
object Tag [get, set]
 Gets and Sets a User defined object.
Lifespan Lifetime [get, set]
 Gets and Sets the LifeTime of the object. The object will be removed from the engine when it is Expired.
List< BodyBodies [get]
int Order [get, set]
 Get and Sets The order number of when it will be ran. All Logics with a higher order will run after this one and all logics with a lower order number will be ran before this one.

Tapahtumat

EventHandler LifetimeChanged
 Raised when the Lifetime property has been Changed.
EventHandler Added
 Raised when the object is added to a Physics Engine.
EventHandler Pending
 Raised when the object is Added to the engine but is not yet part of the update process.
EventHandler< RemovedEventArgsRemoved
 Raised when the object is Removed from a Physics Engine.

Yksityiskohtainen selite

A physics logic is a way for the engine to effect object within the Update call. Gravity is a Example of a PhysicsLogic.


Jäsenfunktioiden dokumentaatio

virtual internal void BeforeAddCheck ( PhysicsEngine  engine) [inline, protected, virtual]

Before the item is allowed to be added to pending this method is called to throw any exceptions without corrupting the state of the Physics engine.

Parametrit:
engineThe engine the item is about to be added too.

Uudelleentoteutetaan luokissa GravityPointMass ja RaySegmentsCollisionLogic.


Ominaisuuksien dokumentaatio

PhysicsEngine Engine [get]

Gets The PhysicsEngine the object is currently in. Null if it is in none.

Toteuttaa luokan IPhysicsEntity.

bool IsAdded [get]

Gets if the object has been added to the engine.

Toteuttaa luokan IPendable.

bool IsPending [get]

Gets if it has been added the the Engine's PendingQueue, but not yet added to the engine.

Toteuttaa luokan IPendable.

Lifespan Lifetime [get, set]

Gets and Sets the LifeTime of the object. The object will be removed from the engine when it is Expired.

Toteuttaa luokan IPendable.

int Order [get, set]

Get and Sets The order number of when it will be ran. All Logics with a higher order will run after this one and all logics with a lower order number will be ran before this one.

object Tag [get, set]

Gets and Sets a User defined object.

Toteuttaa luokan IPendable.


Tapahtumien dokumentaatio

EventHandler Added

Raised when the object is added to a Physics Engine.

Toteuttaa luokan IPendable.

EventHandler LifetimeChanged

Raised when the Lifetime property has been Changed.

Toteuttaa luokan IPendable.

EventHandler Pending

Raised when the object is Added to the engine but is not yet part of the update process.

Toteuttaa luokan IPendable.

EventHandler<RemovedEventArgs> Removed

Raised when the object is Removed from a Physics Engine.

Toteuttaa luokan IPendable.


Dokumentaatio tälle luokalle luotiin seuraavasta tiedostosta:
 Kaikki Luokat Nimiavaruudet Funktiot Muuttujat Luettelotyypit Ominaisuudet Tapahtumat