Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
BattleWalker Class Reference
Inheritance diagram for BattleWalker:
GravityWalker

Public Member Functions

 __init__ (self)
 
 getSpeeds (self)
 
 handleAvatarControls (self, task)
 
 handleAvatarControls (self, task)
 
- Public Member Functions inherited from GravityWalker
 addBlastForce (self, vector)
 
 debugPrint (self, message)
 
 deleteCollisions (self)
 
 disableAvatarControls (self)
 
 displayDebugInfo (self)
 
 doDeltaPos (self)
 
 enableAvatarControls (self)
 
 flushEventHandlers (self)
 
 getAirborneHeight (self)
 
 getCollisionsActive (self)
 
 getGravity (self, gravity)
 
 getIsAirborne (self)
 
 getVelocity (self)
 
 initializeCollisions (self, collisionTraverser, avatarNodePath, avatarRadius=1.4, floorOffset=1.0, reach=1.0)
 
 oneTimeCollide (self)
 
 placeOnFloor (self)
 
 reset (self)
 
 setAirborneHeightFunc (self, unused_parameter)
 
 setAvatar (self, avatar)
 
 setAvatarPhysicsIndicator (self, indicator)
 
 setCollisionRayHeight (self, height)
 
 setCollisionsActive (self, active=1)
 
 setFloorBitMask (self, bitMask)
 
 setGravity (self, gravity)
 
 setMayJump (self, task)
 
 setPriorParentVector (self)
 
 setTag (self, key, value)
 
 setupEventSphere (self, bitmask, avatarRadius)
 
 setupFloorSphere (self, bitmask, avatarRadius)
 
 setupRay (self, bitmask, floorOffset, reach)
 
 setupWallSphere (self, bitmask, avatarRadius)
 
 setWalkSpeed (self, forward, jump, reverse, rotate)
 
 setWallBitMask (self, bitMask)
 
 startJumpDelay (self, delay)
 
 swapFloorBitMask (self, oldMask, newMask)
 

Public Attributes

 advanceSpeed
 
 avatarControlForwardSpeed
 
 avatarControlJumpForce
 
 avatarControlReverseSpeed
 
 avatarControlRotateSpeed
 
 isAirborne
 
 moving
 
 needToDeltaPos
 
 priorParent
 
 rotationSpeed
 
 slideSpeed
 
 speed
 
 vel
 
- Public Attributes inherited from GravityWalker
 avatar
 
 avatarControlForwardSpeed
 
 avatarControlJumpForce
 
 avatarControlReverseSpeed
 
 avatarControlRotateSpeed
 
 avatarNodePath
 
 avatarPhysicsIndicator
 
 avatarRadius
 
 cEventSphereNodePath
 
 cFloorSphereNodePath
 
 collisionsActive
 
 controlsTask
 
 cRay
 
 cRayNodePath
 
 cTrav
 
 cWallSphereNodePath
 
 event
 
 falling
 
 floorBitmask
 
 getAirborneHeight
 
 highMark
 
 indicatorTask
 
 isAirborne
 
 jumpDelayTask
 
 lifter
 
 mayJump
 
 moving
 
 needToDeltaPos
 
 physVelocityIndicator
 
 priorParent
 
 pusher
 
 pusherFloor
 
 pusherFloorhandler
 
 rotationSpeed
 
 setMayJump
 
 slideSpeed
 
 speed
 
 vel
 
 wallBitmask
 

Additional Inherited Members

- Static Public Attributes inherited from GravityWalker
int DiagonalFactor = math.sqrt(2.) / 2.
 
 earlyEventSphere = ConfigVariableBool('early-event-sphere', False)
 
 notify = directNotify.newCategory("GravityWalker")
 
 wantDebugIndicator = ConfigVariableBool('want-avatar-physics-indicator', False)
 
 wantFloorSphere = ConfigVariableBool('want-floor-sphere', False)
 
- Protected Attributes inherited from GravityWalker
 _legacyLifter
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self)

Reimplemented from GravityWalker.

Member Function Documentation

◆ getSpeeds()

getSpeeds ( self)

Reimplemented from GravityWalker.

◆ handleAvatarControls() [1/2]

handleAvatarControls ( self,
task )
Check on the arrow keys and update the avatar.

Reimplemented from GravityWalker.

◆ handleAvatarControls() [2/2]

handleAvatarControls ( self,
task )
Check on the arrow keys and update the avatar.

Reimplemented from GravityWalker.

Member Data Documentation

◆ advanceSpeed

advanceSpeed

◆ avatarControlForwardSpeed

avatarControlForwardSpeed

◆ avatarControlJumpForce

avatarControlJumpForce

◆ avatarControlReverseSpeed

avatarControlReverseSpeed

◆ avatarControlRotateSpeed

avatarControlRotateSpeed

◆ isAirborne

isAirborne

◆ moving

moving

◆ needToDeltaPos

needToDeltaPos

◆ priorParent

priorParent

◆ rotationSpeed

rotationSpeed

◆ slideSpeed

slideSpeed

◆ speed

speed

◆ vel

vel