The PGE_Phys_Object class. More...
#include <lvl_base_object.h>
Public Member Functions | |
| virtual double | posX () |
| Position X. | |
| virtual double | posY () |
| Position Y. | |
| double | posCenterX () |
| Centered Position X. | |
| double | posCenterY () |
| Centered Position Y. | |
| double | width () |
| double | height () |
| double | top () |
| void | setTop (double tp) |
| double | bottom () |
| void | setBottom (double btm) |
| double | left () |
| void | setLeft (double lf) |
| double | right () |
| void | setRight (double rt) |
| void | setSize (float w, float h) |
| void | setWidth (float w) |
| void | setHeight (float h) |
| virtual void | setPos (double x, double y) |
| void | setPosX (double x) |
| void | setPosY (double y) |
| void | setCenterPos (double x, double y) |
| void | setCenterX (double x) |
| void | setCenterY (double y) |
| double | speedX () |
| double | speedY () |
| double | speedXsum () |
| double | speedYsum () |
| void | setSpeed (double x, double y) |
| void | setSpeedX (double x) |
| void | setSpeedY (double y) |
| void | setDecelX (double x) |
| void | applyAccel (double x, double y) |
| double | gravityScale () |
| void | setGravityScale (double scl) |
| float | gravityAccel () |
| void | setGravityAccel (float acl) |
| void | _syncPosition () |
| void | _syncPositionAndSize () |
| void | _syncSection () |
| void | renderDebug (float _camX, float _camY) |
| void | iterateStep (float ticks) |
| virtual void | updateCollisions () |
| virtual void | solveCollision (PGE_Phys_Object *collided) |
| PGE_Phys_Object * | nearestBlock (QVector< PGE_Phys_Object * > &blocks) |
| PGE_Phys_Object * | nearestBlockY (QVector< PGE_Phys_Object * > &blocks) |
| bool | isWall (QVector< PGE_Phys_Object * > &blocks) |
| bool | isFloor (QVector< PGE_Phys_Object * > &blocks, bool *isCliff=0) |
| void | setParentSection (LVL_Section *sct) |
| LVL_Section * | sct () |
| virtual GLdouble | zIndex () |
| virtual void | show () |
| virtual void | hide () |
| virtual bool | isVisible () |
| virtual void | update () |
| virtual void | update (float ticks) |
| virtual void | render (double x, double y) |
| bool | isPaused () |
| void | setPaused (bool p) |
Static Public Member Functions | |
| static float | SMBXTicksToTime (float ticks) |
Public Attributes | |
| double | colliding_xSpeed |
| double | colliding_ySpeed |
| bool | collided_slope |
| float | collided_slope_angle_ratio |
| bool | collided_slope_celling |
| float | collided_slope_angle_ratio_celling |
| PGE_Phys_Object_Phys | phys_setup |
| Settings of physics. | |
| PGE_RectF | posRect |
| Real body geometry and position. | |
| double | _accelX |
| Delta of X velocity in a second. | |
| double | _accelY |
| Delta of Y velocity in a second. | |
| double | _velocityX |
| current X speed (pixels per 1/65 of second) | |
| double | _velocityY |
| current Y speed (pixels per 1/65 of second) | |
| double | _velocityX_prev |
| X speed before last itertion step (pixels per 1/65 of second) | |
| double | _velocityY_prev |
| Y speed before last itertion step (pixels per 1/65 of second) | |
| double | _velocityX_add |
| additional X acceleration | |
| double | _velocityY_add |
| additional Y acceleration | |
| double | _posX |
| Synchronized with R-Tree position. | |
| double | _posY |
| Synchronized with R-Tree position. | |
| double | _width |
| Synchronized with R-Tree Width. | |
| double | _height |
| Synchronized with R-Tree Height. | |
| double | _width_half |
| Half of width. | |
| double | _height_half |
| Half of height. | |
| double | _realWidth |
| Width prepared to synchronize with R-Tree. | |
| double | _realHeight |
| Height prepared to synchronize with R-Tree. | |
| LVL_Section * | _parentSection |
| int | type |
| int | collide_player |
| int | collide_npc |
| bool | slippery_surface |
| bool | isRectangle |
| PGE_Texture | texture |
| GLuint | texId |
| GLdouble | z_index |
| bool | _is_visible |
Static Public Attributes | |
| static const float | _smbxTickTime =1000.f/65.f |
The PGE_Phys_Object class.
Is a base of any physical objects
1.8.7