Class/Object

net.psforever.packet.game

Shortcut

Related Docs: object Shortcut | package game

Permalink

final case class Shortcut(purpose: Int, tile: String, effect1: String = "", effect2: String = "") extends Product with Serializable

Details regarding this shortcut.

The parameters purpose and tile are closely related. These two fields are consistent for all shortcuts of the same type. purpose indicates the purpose of the shortcut. tile is related to what kind of graphic is displayed in this shortcut's slot on the hotbar based on its purpose. The parameters effect1 and effect2 are exclusive to text macro shortcuts and are defaulted to empty Strings.

The shortcut_macro setting displays a word bubble superimposed by the (first three letters of) effect1 text.
Implants and the medkit should have self-explanatory graphics.
Purpose:
0 - Medkit
1 - Macro
2 - Implant

Tile:
advanced_regen (regeneration)
audio_amplifier
darklight_vision
medkit
melee_booster
personal_shield
range_magnifier
second_wind
shortcut_macro
silent_run (sensor shield)
surge
targeting (enhanced targetting)

Exploration:
What is purpose when 3?

purpose

the primary use of this shortcut

tile

the visual element of the shortcut

effect1

for macros, a three letter acronym displayed in the hotbar

effect2

for macros, the chat message content

Source
CreateShortcutMessage.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Shortcut
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Shortcut(purpose: Int, tile: String, effect1: String = "", effect2: String = "")

    Permalink

    purpose

    the primary use of this shortcut

    tile

    the visual element of the shortcut

    effect1

    for macros, a three letter acronym displayed in the hotbar

    effect2

    for macros, the chat message content

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Shortcut to any2stringadd[Shortcut] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Shortcut, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Shortcut to ArrowAssoc[Shortcut] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val effect1: String

    Permalink

    for macros, a three letter acronym displayed in the hotbar

  9. val effect2: String

    Permalink

    for macros, the chat message content

  10. def ensuring(cond: (Shortcut) ⇒ Boolean, msg: ⇒ Any): Shortcut

    Permalink
    Implicit information
    This member is added by an implicit conversion from Shortcut to Ensuring[Shortcut] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (Shortcut) ⇒ Boolean): Shortcut

    Permalink
    Implicit information
    This member is added by an implicit conversion from Shortcut to Ensuring[Shortcut] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): Shortcut

    Permalink
    Implicit information
    This member is added by an implicit conversion from Shortcut to Ensuring[Shortcut] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): Shortcut

    Permalink
    Implicit information
    This member is added by an implicit conversion from Shortcut to Ensuring[Shortcut] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Shortcut to StringFormat[Shortcut] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. val purpose: Int

    Permalink

    the primary use of this shortcut

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. val tile: String

    Permalink

    the visual element of the shortcut

  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. def [B](y: B): (Shortcut, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Shortcut to ArrowAssoc[Shortcut] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Shortcut to any2stringadd[Shortcut]

Inherited by implicit conversion StringFormat from Shortcut to StringFormat[Shortcut]

Inherited by implicit conversion Ensuring from Shortcut to Ensuring[Shortcut]

Inherited by implicit conversion ArrowAssoc from Shortcut to ArrowAssoc[Shortcut]

Ungrouped