# PSF-LoginServer - master - net.psforever.actors.session.AvatarActor
PSF - LoginServer - master - net.psforever.actors.session.AvatarActor
Keywords: PSF LoginServer master net.psforever.actors.session.AvatarActor

PSF-LoginServer - master < Back


# Packages

-  package root
  Definition Classes
    root
-  package net
  Definition Classes
    root
-  package psforever
  Definition Classes
    net
-  package actors
  Definition Classes
    psforever
-  package session
  Definition Classes
    actors
- AvatarActor
- ChatActor
- SessionActor

o

net.psforever.actors.session

# AvatarActor 

###
Companion class AvatarActor

#### object AvatarActor

Source
  AvatarActor.scala

Linear Supertypes
AnyRef, Any

Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. AvatarActor
2. AnyRef
3. Any

1. Hide All
2. Show All

Visibility

1. Public
2. Protected

### Type Members

1.  final case class ActivateImplant (implantType: ImplantType) extends Command with Product with Serializable

   Activate an implant (must already be initialized)

2.  final case class AddFirstTimeEvent (event: String) extends Command with Product with Serializable

   Add a first time event (help text)

3.  final case class AvatarLoginResponse (avatar: Avatar) extends Product with Serializable
4.  final case class AvatarResponse (avatar: Avatar) extends Product with Serializable
5.  final case class AwardBep (bep: Long) extends Command with Product with Serializable

   Award battle experience points

6.  final case class AwardCep (bep: Long) extends Command with Product with Serializable

   Award command experience points

7.  sealed trait Command extends AnyRef
8.  final case class ConsumeStamina (stamina: Int) extends Command with Product with Serializable

   Consume up to the given stamina amount

9.  final case class CreateAvatar (name: String, head: Int, voice: types.CharacterVoice.Value, gender: CharacterSex, empire: types.PlanetSideEmpire.Value) extends Command with Product with Serializable

   Create avatar

10.  final case class CreateImplants () extends Command with Product with Serializable

    Send implants to client - TODO this can be done better using a event system on SessionActor

11.  final case class DeactivateActiveImplants () extends Command with Product with Serializable

    Deactivate all non-passive implants that are in use

12.  final case class DeactivateImplant (implantType: ImplantType) extends Command with Product with Serializable

    Deactivate an implant

13.  final case class DeinitializeImplants () extends Command with Product with Serializable

    Deinitialize implants (before zoning or respawning)

14.  final case class DeleteAvatar (charId: Int) extends Command with Product with Serializable

    Delete avatar

15.  final case class DeleteLoadout (player: Player, loadoutType: types.LoadoutType.Value, number: Int) extends Command with Product with Serializable

    Delete a loadout

16.  final case class InitialRefreshLoadouts () extends Command with Product with Serializable

    Refresh the client's loadouts, excluding empty entries

17.  final case class InitializeImplants () extends Command with Product with Serializable

    Start implant initialization timers (after zoning or respawn)

18.  final case class LearnCertification (terminalGuid: PlanetSideGUID, certification: Certification) extends Command with Product with Serializable

    Add a certification using a terminal

19.  final case class LearnImplant (terminalGuid: PlanetSideGUID, definition: ImplantDefinition) extends Command with Product with Serializable

    Add a implant using a terminal

20.  final case class LoginAvatar (replyTo: ActorRef[AvatarLoginResponse]) extends Command with Product with Serializable

    Log in the currently selected avatar.

    Log in the currently selected avatar. Must have first sent SelectAvatar.

21.  final case class RefreshLoadouts () extends Command with Product with Serializable

    Refresh all of the client's loadouts

22.  final case class RefreshPurchaseTimes () extends Command with Product with Serializable

    Force refresh the client's item purchase times

23.  final case class ReplaceAvatar (avatar: Avatar) extends Command with Product with Serializable

    Replace avatar instance with the provided one

24.  final case class ResetImplant (implant: ImplantType) extends Command with Product with Serializable

    Deinitialize a certain implant, then initialize it again

25.  final case class ResetImplants () extends Command with Product with Serializable

    Shorthand for DeinitializeImplants and InitializeImplants

26.  final case class RestoreStamina (stamina: Int) extends Command with Product with Serializable

    Restore up to the given stamina amount

27.  final case class SaveLoadout (player: Player, loadoutType: types.LoadoutType.Value, label: Option[String], number: Int) extends Command with Product with Serializable

    Save a loadout

28.  final case class SaveLocker () extends Command with Product with Serializable

    Take all the entries in the player's locker and write it to the database

29.  final case class SelectAvatar (charId: Int, replyTo: ActorRef[AvatarResponse]) extends Command with Product with Serializable

    Load basic avatar info

30.  final case class SellCertification (terminalGuid: PlanetSideGUID, certification: Certification) extends Command with Product with Serializable

    Remove a certification using a terminal

31.  final case class SellImplant (terminalGuid: PlanetSideGUID, definition: ImplantDefinition) extends Command with Product with Serializable

    Remove a implant using a terminal

32.  final case class SetAccount (account: Account) extends Command with Product with Serializable

    Set account this avatar belongs to.

    Set account this avatar belongs to. Required for handling most other messages.

33.  final case class SetBep (bep: Long) extends Command with Product with Serializable

    Set total battle experience points

34.  final case class SetCep (bep: Long) extends Command with Product with Serializable

    Set total command experience points

35.  final case class SetCertifications (certifications: Set[Certification]) extends Command with Product with Serializable

    Force-set certifications

36.  final case class SetCosmetics (personalStyles: Set[Cosmetic]) extends Command with Product with Serializable

    Set cosmetics.

    Set cosmetics. Only allowed for BR24 or higher.

37.  final case class SetLookingForSquad (lfs: Boolean) extends Command with Product with Serializable

    Set the avatar's lookingForSquad

38.  final case class SetSession (session: Session) extends Command with Product with Serializable
39.  final case class SetStamina (stamina: Int) extends Command with Product with Serializable
40.  final case class SetVehicle (vehicle: Option[PlanetSideGUID]) extends Command with Product with Serializable

    Set vehicle

41.  final case class Subscribe (actor: ActorRef[Avatar]) extends Command with Product with Serializable

    Subscribe to avatar updates

42.  final case class SuspendStaminaRegeneration (duration: FiniteDuration) extends Command with Product with Serializable

    Suspend stamina regeneration for a given time

43.  final case class Unsubscribe (actor: ActorRef[Avatar]) extends Command with Product with Serializable

    Unsubscribe from avatar updates

44.  final case class UpdatePurchaseTime (definition: BasicDefinition, time: LocalDateTime = LocalDateTime.now()) extends Command with Product with Serializable

    Set purchase time for the use of calculating cooldowns

45.  final case class UpdateUseTime (definition: BasicDefinition, time: LocalDateTime = LocalDateTime.now()) extends Command with Product with Serializable

    Set use time for the use of calculating cooldowns

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##: Int
   Definition Classes
     AnyRef → Any
3.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
4.  def apply(sessionActor: ActorRef[SessionActor.Command]): Behavior[Command]
5.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
6.  def clone(): AnyRef
   Attributes
     protected[lang]
   Definition Classes
     AnyRef
   Annotations
     @throws(classOf[java.lang.CloneNotSupportedException]) @native()
7.  final def eq(arg0: AnyRef): Boolean
   Definition Classes
     AnyRef
8.  def equals(arg0: AnyRef): Boolean
   Definition Classes
     AnyRef → Any
9.  def finalize(): Unit
   Attributes
     protected[lang]
   Definition Classes
     AnyRef
   Annotations
     @throws(classOf[java.lang.Throwable])
10.  final def getClass(): Class[_ <: AnyRef]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
11.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
12.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
13.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
14.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
15.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
16.  final def synchronized[T0](arg0: => T0): T0
    Definition Classes
      AnyRef
17.  def toString(): String
    Definition Classes
      AnyRef → Any
18.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
19.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
20.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException]) @native()

### Inherited from AnyRef

### Inherited from Any

### Ungrouped