Panda3D
Public Member Functions | Public Attributes | List of all members
BattleWalker Class Reference
Inheritance diagram for BattleWalker:
GravityWalker

Public Member Functions

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

Public Attributes

 advanceSpeed
 
 isAirborne
 
 moving
 
 needToDeltaPos
 
 priorParent
 
 rotationSpeed
 
 slideSpeed
 
 speed
 
 vel
 
- Public Attributes inherited from GravityWalker
 avatar
 
 avatarControlForwardSpeed
 
 avatarControlJumpForce
 
 avatarControlReverseSpeed
 
 avatarControlRotateSpeed
 
 avatarNodePath
 
 avatarRadius
 
 cEventSphereNodePath
 
 cFloorSphereNodePath
 
 collisionsActive
 
 controlsTask
 
 cRay
 
 cRayNodePath
 
 cTrav
 
 cWallSphereNodePath
 
 event
 
 falling
 
 floorBitmask
 
 getAirborneHeight
 
 highMark
 
 indicatorTask
 
 isAirborne
 
 jumpDelayTask
 
 lifter
 
 mayJump
 
 moving
 
 needToDeltaPos
 
 physVelocityIndicator
 
 priorParent
 
 pusher
 
 pusherFloorhandler
 
 rotationSpeed
 
 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)
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Member Function Documentation

◆ getSpeeds()

def getSpeeds (   self)

Reimplemented from GravityWalker.

◆ handleAvatarControls() [1/2]

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

Reimplemented from GravityWalker.

◆ handleAvatarControls() [2/2]

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

Reimplemented from GravityWalker.

Member Data Documentation

◆ advanceSpeed

advanceSpeed

◆ isAirborne

isAirborne

◆ moving

moving

◆ needToDeltaPos

needToDeltaPos

◆ priorParent

priorParent

◆ rotationSpeed

rotationSpeed

◆ slideSpeed

slideSpeed

◆ speed

speed

◆ vel

vel