Class: Jump (of Motion)

The Jump class is a motion class which allows actors to jump.

Properties

  • client
  • caller
  • x
  • y
  • dx
  • dy
  • b-moveCnt
  • b-i1
  • b-i2
  • b-di
  • b-xAxis
  • b-incr
  • completed
  • xLast
  • yLast
  • gx
  • gy
  • xStep
  • yStep
  • signal
  • illegalBits
  • waitApogeeX
  • waitApogeeY

Methods

  • void init(heapPtr theClient[, heapPtr theCaller])

    Sets up the jump class.

  • void doit()

    Jumps the client actor towards the destination.

  • void moveDone()

    Sets the client's illegalBits and signal properties. If the caller is set, it sets the global variable gCastMotionCue to TRUE, and the completed property to TRUE.

  • void motionCue()

    Seperates the class from it's client (setting the client's mover to NULL). If the movement is complete and the caller is set, it cues the caller. Finally, it disposes of itself.

  • void setTest()

    Sets up the dx and dy properties.