Options
All
  • Public
  • Public/Protected
  • All
Menu

PlatformRuntimeBehavior represents a behavior allowing objects to be considered as a platform by objects having PlatformerObject Behavior.

Hierarchy

Index

Properties

JUMPTHRU: number = 1
LADDER: number = 2
NORMALPLAFTORM: number = 0
currentRBushAABB: null | BehaviorRBushAABB<PlatformRuntimeBehavior> = null
name: string
type: string

Methods

  • activate(enable: boolean): void
  • activated(): boolean
  • canBeGrabbed(): boolean
  • changePlatformType(platformType: string): void
  • getName(): string
  • getNameId(): number
  • getPlatformType(): number
  • getYGrabOffset(): number
  • onActivate(): void
  • onCreated(): void
  • onDeActivate(): void
  • onDestroy(): void
  • This method is called when the owner of the behavior is being removed from the scene and is about to be destroyed/reused later or when the behavior is removed from an object (can happen in case of hot-reloading only. Otherwise, behaviors are just de-activated, not removed. See onDeActivate).

    Returns void

  • onObjectHotReloaded(): void
  • updateFromBehaviorData(oldBehaviorData: any, newBehaviorData: any): boolean

Constructors

Generated using TypeDoc