OGWPlatformerCommandsDelegate Protocol Reference
Conforms to | NSObject |
Declared in | OGWPlatformerCommandsAspect.h |
Tasks
Entity
-
– entityDidJump
required method -
– entityDidEndJump
required method -
– entityDidStartWalkingLeft
required method -
– entityDidStartWalkingRight
required method -
– entityDidStopWalking
required method -
– entityDidDieWithReason:
required method -
– entityCorpseDidRot
required method -
– entityDidRespawn
required method -
– entityDidActivateCheckpoint
required method -
– entityDidLand
required method -
– entityDidLiftOffGround
required method
World
-
– loadWorldNamed:triggeredBy:
required method
Instance Methods
entityCorpseDidRot
entity’s corpse did rot (up until this point a death animation can run). Corpse rot is the moment when the view should hide the entity’s body as it is about to travel back to its checkpoint.
- (void)entityCorpseDidRot
Declared In
OGWPlatformerCommandsAspect.h
entityDidActivateCheckpoint
entity activated a new and previously unused checkpoint
- (void)entityDidActivateCheckpoint
Declared In
OGWPlatformerCommandsAspect.h
entityDidDieWithReason:
entity died
- (void)entityDidDieWithReason:(OGWPlatformerStateChangeReason)reason
Parameters
- reason
The reason why the entity died, ie cause and circumstances of death.
Declared In
OGWPlatformerCommandsAspect.h
entityDidEndJump
sent when the entity was jumping and the jump ended due to the user letting go of the jump button before achieving the maximum jump height
- (void)entityDidEndJump
Declared In
OGWPlatformerCommandsAspect.h
entityDidJump
sent when the entity started a jump
- (void)entityDidJump
Declared In
OGWPlatformerCommandsAspect.h
entityDidLand
entity landed on ground, either on solid ground or on a collidable object (ie moving platform)
- (void)entityDidLand
Declared In
OGWPlatformerCommandsAspect.h
entityDidLiftOffGround
entity lost contact with the ground, this can be either due to jumping or walking off an edge
- (void)entityDidLiftOffGround
Declared In
OGWPlatformerCommandsAspect.h
entityDidRespawn
entity respawned at a checkpoint after having died
- (void)entityDidRespawn
Declared In
OGWPlatformerCommandsAspect.h
entityDidStartWalkingLeft
entity is now moving in the left direction
- (void)entityDidStartWalkingLeft
Declared In
OGWPlatformerCommandsAspect.h
entityDidStartWalkingRight
entity is now moving in the right direction
- (void)entityDidStartWalkingRight
Declared In
OGWPlatformerCommandsAspect.h
entityDidStopWalking
entity stopped moving horizontally
- (void)entityDidStopWalking
Declared In
OGWPlatformerCommandsAspect.h
loadWorldNamed:triggeredBy:
instruct the view to load another world with the given name (here: the name of a TMX file)
- (void)loadWorldNamed:(NSString *)name triggeredBy:(OGWEntity *)trigger
Parameters
- name
The name of a TMX file to load.
- trigger
The entity that triggered the load world command, ie the exit trigger. This trigger may provide additional information through entity.values for the view, for example the name of a checkpoint to spawn at in the new world.
Declared In
OGWPlatformerCommandsAspect.h