BattleStore

abstract class BattleStore

Anchor PK management class

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Create BattleStore instance

Properties

Link copied to clipboard
abstract val battleState: BattleState

Functions

Link copied to clipboard
abstract fun acceptBattle(battleID: String?, completion: CompletionHandler?)

Accept PK request

Link copied to clipboard
abstract fun addBattleListener(listener: BattleListener?)
Link copied to clipboard
abstract fun cancelBattleRequest(battleID: String?, userIDList: List<String>, completion: CompletionHandler?)

Cancel PK request

Link copied to clipboard
abstract fun exitBattle(battleID: String?, completion: CompletionHandler?)

Exit PK

Link copied to clipboard
abstract fun rejectBattle(battleID: String?, completion: CompletionHandler?)

Reject PK request

Link copied to clipboard
abstract fun removeBattleListener(listener: BattleListener?)
Link copied to clipboard
abstract fun requestBattle(config: BattleConfig, userIDList: List<String>, timeout: Int, completion: BattleRequestCallback?)

Initiate PK request