Public Types | |
| enum | kill_npc_reasons { NPC_Unknown =-1, NPC_Stomped =0, NPC_Kicked, NPC_Taked_Coin, NPC_Taked_Powerup } |
| enum | deathReason { DEAD_fall =0, DEAD_burn, DEAD_killed } |
| enum | AttackDirection { Attack_Forward =0, Attack_Up, Attack_Down } |
|
typedef QHash< int, PGE_Phys_Object * > | PlayerColliders |
Public Types inherited from PGE_Phys_Object | |
| enum | Slopes { SLOPE_LEFT =-1, SLOPE_RIGHT =1 } |
| enum | CollisionType { COLLISION_NONE = 0, COLLISION_ANY = 1, COLLISION_TOP = 2, COLLISION_BOTTOM = 3 } |
| enum | types { LVLUnknown =0, LVLBlock, LVLBGO, LVLNPC, LVLPlayer, LVLEffect, LVLWarp, LVLSpecial, LVLPhysEnv } |
Public Member Functions | |
| LVL_Player () | |
| void | setCharacter (int CharacterID, int _stateID) |
| void | setCharacterSafe (int CharacterID, int _stateID) |
| void | setPlayerPointInfo (PlayerPoint pt) |
| void | init () |
| void | update (float ticks) |
| void | updateCamera () |
| void | refreshEnvironmentState () |
| void | updateCollisions () |
| void | solveCollision (PGE_Phys_Object *collided) |
| void | teleport (float x, float y) |
| void | exitFromLevel (QString levelFile, int targetWarp, long wX=-1, long wY=-1) |
| void | kill_npc (LVL_Npc *target, kill_npc_reasons reason) |
| bool | isRunning () |
| int | direction () |
| void | kill (deathReason reason=DEAD_killed) |
| void | unregister () |
| void | harm (int _damage=1) |
| void | setInvincible (bool state, float delay, bool enableScreenBlink=false) |
| bool | onGround () |
| void | bump (bool _up=false, double bounceSpeed=0.0, int timeToJump=0) |
| void | bumpf (bool _up, float bounceSpeed=0.0f, int timeToJump=0) |
| void | processWarpChecking () |
| void | WarpTo (float x, float y, int warpType, int warpDirection=1) |
| void | WarpTo (LevelDoor warp) |
| void | attack (AttackDirection _dir) |
| void | setDuck (bool duck) |
| void | render (double camX, double camY) |
| bool | locked () |
| void | setLocked (bool lock) |
| virtual void | lua_onLoop () |
| bool | isInited () |
Public Member Functions inherited from PGE_Phys_Object | |
| 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) |
| 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 () |
| bool | isPaused () |
| void | setPaused (bool p) |
Public Member Functions inherited from ControllableObject | |
| ControllableObject () | |
| Constructor. | |
| void | applyControls (controller_keys sentkeys) |
| Input slot which accepts control key states map from a controller. More... | |
| void | resetControls () |
| Sets all key states into "unpressed" state. | |
Public Attributes | |
| bool | forceCollideCenter |
| collide with invizible blocks at center | |
| float | _heightDelta |
| QHash< int, PGE_Phys_Object * > | collided_top |
| QHash< int, PGE_Phys_Object * > | collided_left |
| QHash< int, PGE_Phys_Object * > | collided_right |
| QHash< int, PGE_Phys_Object * > | collided_bottom |
| QHash< int, PGE_Phys_Object * > | collided_center |
| LVL_Npc * | collided_talkable_npc |
| bool | _stucked |
| int | playerID |
| obj_player | setup |
| PlayerPoint | data |
| PGE_LevelCamera * | camera |
| Connected camera. | |
| QHash< int, obj_player_state > | states |
| int | characterID |
| int | stateID |
| obj_player_state | state_cur |
| QHash< int, obj_player_physics > | physics |
| QHash< int, int > | environments_map |
| obj_player_physics | physics_cur |
| int | environment |
| int | last_environment |
| bool | _isRunning |
| int | _direction |
| bool | isAlive |
| bool | doKill |
| deathReason | kill_reason |
| int | health |
| bool | invincible |
| float | invincible_delay |
| bool | blink_screen |
| bool | blink_screen_state |
| bool | doHarm |
| int | doHarm_damage |
| float | gscale_Backup |
| BackUP of last gravity scale. | |
| bool | JumpPressed |
| bool | _onGround |
| bool | on_slippery_surface |
|
QHash< intptr_t, PGE_Phys_Object * > | foot_contacts_map |
| staying on ground surfaces | |
|
QHash< intptr_t, PGE_Phys_Object * > | foot_sl_contacts_map |
| Slipery surfaces. | |
| float | jumpTime |
| float | jumpVelocity |
| bool | bumpDown |
| bool | bumpUp |
| float | bumpVelocity |
| down velocity | |
| float | bumpJumpVelocity |
| int | bumpJumpTime |
| Up jump velocity. More... | |
|
QHash< intptr_t, PGE_Phys_Object * > | climbable_map |
| bool | climbing |
| double | climbableHeight |
| bool | contactedWithWarp |
| LVL_Warp * | contactedWarp |
| bool | wasEntered |
| int | wasEnteredTimeout |
| bool | isWarping |
| int | warpDirectO |
| float | warpPipeOffset |
| float | warpFrameW |
| float | warpFrameH |
| EventQueue< LVL_Player > | event_queue |
| bool | floating_allow |
| bool | floating_isworks |
| float | floating_timer |
| float | floating_maxtime |
| bool | floating_start_type |
| true= sin(time), false= cos(time) | |
| bool | attack_enabled |
| bool | attack_pressed |
| bool | duck_allow |
| bool | ducking |
| MatrixAnimator | animator |
| int | frameW |
| int | frameH |
| bool | isExiting |
| int | _exiting_swimTimer |
| bool | isLuaPlayer |
Public Attributes inherited from PGE_Phys_Object | |
| 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 |
Additional Inherited Members | |
Static Public Member Functions inherited from PGE_Phys_Object | |
| static float | SMBXTicksToTime (float ticks) |
Static Public Attributes inherited from PGE_Phys_Object | |
| static const float | _smbxTickTime =1000.f/65.f |
Protected Attributes inherited from ControllableObject | |
| controller_keys | keys |
| Recently accepted control key states. | |
| LVL_Player::LVL_Player | ( | ) |
< BackUP of last gravity scale
< Max time to float
< Is character currently floating in air
< Milliseconds to float
| void LVL_Player::setCharacter | ( | int | CharacterID, |
| int | _stateID | ||
| ) |
< Max time to float
|
virtual |
< Reset floating on climbing start
< Reset floating on climbing start
Reimplemented from PGE_Phys_Object.
| void LVL_Player::WarpTo | ( | float | x, |
| float | y, | ||
| int | warpType, | ||
| int | warpDirection = 1 |
||
| ) |
< Forcing to refresh physical environment
< Forcing to refresh physical environment
| int LVL_Player::bumpJumpTime |
Up jump velocity.
Up jump time
1.8.7