class AvatarActor extends AnyRef
- Source
- AvatarActor.scala
- Alphabetic
- By Inheritance
- AvatarActor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- var _avatar: Option[Avatar]
- var account: Option[Account]
- def actuallyRestoreStamina(stamina: Int, session: Session): Unit
- def actuallyRestoreStaminaIfStationary(stamina: Int, session: Session): Unit
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def avatar: Avatar
- def avatarCopy(copyAvatar: Avatar): Unit
na
na
- copyAvatar
na
- See also
replaceCopy(Avatar)
- def avatar_=(avatar: Avatar): Unit
- def characterSelect(account: Account): Behavior[Command]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def consumeThisMuchStamina(stamina: Int): Boolean
Drain at most a given amount of stamina from the player's pool of stamina.
Drain at most a given amount of stamina from the player's pool of stamina. If the player's reserves become zero in the act, inform the player that he is fatigued meaning that he will only be able to walk, all implants will deactivate, and all exertion that require stamina use will become impossible until a threshold of stamina is regained.
- stamina
an amount to drain
- returns
true
, as long as the requested amount of stamina can be drained in total;false
, otherwise
- def createAvatar(account: Account, name: String, sex: CharacterSex, empire: types.PlanetSideEmpire.Value, head: Int, voice: types.CharacterVoice.Value): Unit
- def deactivateImplant(implantType: ImplantType): Unit
- def defaultStaminaRegen(initialDelay: FiniteDuration): Unit
- def deinitializeImplants(): Unit
- def doNotStoreLocker(): Unit
- implicit val ec: ExecutionContextExecutor
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def gameplay: Behavior[Command]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val implantTimers: Map[Int, Cancellable]
- def initializeAllLoadouts(): Future[Seq[Option[Loadout]]]
- def initializeImplants(): Unit
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def loadFriendList(avatarId: Long): Future[List[Friend]]
- def loadIgnoredList(avatarId: Long): Future[List[Ignored]]
- def loadLoadouts(): Future[Seq[Option[Loadout]]]
- def loadLocker(charId: Long): Future[LockerContainer]
- def loadShortcuts(avatarId: Long): Future[Array[Option[Shortcut]]]
- def loadVehicleLoadouts(): Future[Seq[Option[Loadout]]]
- def login(): Behavior[Command]
- def memberActionAddFriend(charId: Long, name: String, faction: Int): Unit
Add another player's data to the list of friend players and report back whether or not that player is online.
Add another player's data to the list of friend players and report back whether or not that player is online. Update the database appropriately.
- charId
unique account identifier
- name
unique character name
- faction
a faction affiliation
- def memberActionAddIgnored(charId: Long, name: String, faction: Int): Unit
Add another player's data to the list of ignored players.
Add another player's data to the list of ignored players. Update the database appropriately. The change affects not only this player but also the player being ignored by denying online visibility of the former to the latter.
- charId
unique account identifier
- name
unique character name
- faction
a faction affiliation
- def memberActionListManagement(action: types.MemberAction.Value, listFunc: () => List[Friend]): Unit
Reload the list of friend players or ignored players for the client.
Reload the list of friend players or ignored players for the client. This does not update any player's online status, but merely reloads current states.
- action
nature of the request (either
InitializeFriendList
orInitializeIgnoreList
, hopefully)- listFunc
transformation function that produces data suitable for a game paket
- def memberActionRemoveFriend(charId: Long, name: String): Unit
Remove another player's data from the list of friend players.
Remove another player's data from the list of friend players. Update the database appropriately.
- charId
unique account identifier
- name
unique character name
- def memberActionRemoveIgnored(charId: Long, name: String): Unit
Remove another player's data from the list of ignored players.
Remove another player's data from the list of ignored players. Update the database appropriately. The change affects not only this player but also the player formerly being ignored by restoring online visibility of the former to the latter.
- charId
unique account identifier
- name
unique character name
- def memberActionUpdateFriend(name: String): Option[(Long, types.PlanetSideEmpire.Value)]
- name
unique character name
- returns
if the avatar is found, that avatar's unique identifier and the avatar's faction affiliation
- def memberListAction(action: types.MemberAction.Value, name: String): Unit
Branch based on behavior of the request for the friends list or the ignored people list.
Branch based on behavior of the request for the friends list or the ignored people list.
- action
nature of the request
- name
other player's name (can not be our name)
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def performAvatarLogin(avatarId: Long, accountId: Long, replyTo: ActorRef[AvatarLoginResponse]): Unit
- def postCharacterSelectBehaviour(): Behavior[Command]
- def postLoginBehaviour(): Behavior[Command]
- def pushLockerClobToDataBase(items: String): io.getquill.PostgresJAsyncContext.Result[io.getquill.PostgresJAsyncContext.RunActionResult]
- def refreshLoadout(line: Int): Unit
- def refreshLoadouts(loadouts: Iterable[(Option[Loadout], Int)]): Unit
- def refreshPurchaseTimes(keys: Set[String]): Unit
- def replaceAvatar(newAvatar: Avatar): Unit
na
na
- newAvatar
na
- See also
avatarCopy(Avatar)
- def resetAnImplant(implantType: ImplantType): Unit
- def restoreStaminaPeriodically(stamina: Int): Unit
- var saveLockerFunc: () => Unit
- def sendAvatars(account: Account): Unit
Send list of avatars to client (show character selection screen)
- var session: Option[Session]
- def setBep(bep: Long, modifier: ExperienceType): Unit
- def setCep(cep: Long): Unit
- def setCosmetics(cosmetics: Set[Cosmetic]): Future[Unit]
- var staminaRegenTimer: Cancellable
- def startIfStoppedStaminaRegen(initialDelay: FiniteDuration): Unit
- def storeLoadout(owner: Player, label: String, line: Int): Future[Loadout]
- def storeLocker(): Unit
- def storeNewLocker(): Unit
- def storeVehicleLoadout(owner: Player, label: String, line: Int, vehicle: Vehicle): Future[Loadout]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def throwLoadoutFailure(ex: Throwable): Future[Loadout]
- def throwLoadoutFailure(msg: String): Future[Loadout]
- def toString(): String
- Definition Classes
- AnyRef → Any
- def transformFriendsList(): List[Friend]
Transform the friends list in a list of packet entities.
Transform the friends list in a list of packet entities.
- returns
a list of
Friends
suitable for putting into a packet
- def transformIgnoredList(): List[Friend]
Transform the ignored players list in a list of packet entities.
Transform the ignored players list in a list of packet entities.
- returns
a list of
Friends
suitable for putting into a packet
- def tryRestoreStaminaForSession(stamina: Int): Option[Session]
- def updateDeployableUIElements(list: List[(Int, Int, Int, Int)]): Unit
- def updateKillsDeathsAssists(kdaStat: KDAStat): Unit
- def updatePurchaseTimer(name: String, time: Long, isNotAMedKit: Boolean): Unit
- def updateToolDischarge(stats: EquipmentStat): Unit
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()