BattleStore class abstract
Anchor PK management class
Constructors
Properties
- battleState → BattleState
-
PK state. {@link BattleState}
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
acceptBattle(
String battleID) → Future< CompletionHandler> - Accept PK request
-
addBattleListener(
BattleListener listener) → void - Add PK callback listener.
-
cancelBattleRequest(
{required String battleID, required List< String> userIDList}) → Future<CompletionHandler> - Cancel PK request
-
exitBattle(
String battleID) → Future< CompletionHandler> - Exit PK
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rejectBattle(
String battleID) → Future< CompletionHandler> - Reject PK request
-
removeBattleListener(
BattleListener listener) → void - Remove PK callback listener.
-
requestBattle(
{required BattleConfig config, required List< String> userIDList, required int timeout}) → Future<BattleRequestCompletionHandler> - Initiate PK request
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
String liveID) → BattleStore - Create BattleStore instance