LevelEndEvent

public class LevelEndEvent extends PredefinedEvent<LevelEndEvent>

A level end event to be sent to Answers with optional attributes.

Inherited Constant Summary

Public Constructor Summary

Public Method Summary

LevelEndEvent
putLevelName(String levelName)
Put name of level ended.
LevelEndEvent
putScore(Number score)
Put score of level ended.
LevelEndEvent
putSuccess(boolean success)
Put result of level attempt.

Inherited Method Summary

Public Constructors

public LevelEndEvent ()

Public Methods

public LevelEndEvent putLevelName (String levelName)

Put name of level ended.

Parameters
levelName name of level ended, not null
Returns
  • this

public LevelEndEvent putScore (Number score)

Put score of level ended.

Parameters
score score of level ended, not null
Returns
  • this

public LevelEndEvent putSuccess (boolean success)

Put result of level attempt. A value of true indicates that the level was completed successfully and a value of false indicates that the was failed.

Parameters
success result of level attempt
Returns
  • this

发送以下问题的反馈:

此网页
需要帮助?请访问我们的支持页面