Class

net.psforever.objects.Tool

FireModeSlot

Related Doc: package Tool

Permalink

class FireModeSlot extends AnyRef

The FireModeSlot can be called the "magazine feed," an abstracted "ammunition slot." Most weapons will have only one ammunition slot and swap different ammunition into it as needed. In general to swap ammunition means to unload the onld ammunition and load the new ammunition. Many weapons also have one ammunition slot and multiple fire modes using the same list of ammunition This slot manages either of two ammunitions where one does not need to unload to be swapped to the other; however, the fire mod has most likely been changed. The Punisher - six ammunition types in total, two uniquely different types without unloading, two exclusive groups of ammunition divided into 2 cycled types and 4 cycled types - is an example of a weapon that benefits from this implementation.

Source
Tool.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FireModeSlot
  2. AnyRef
  3. 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 FireModeSlot(tdef: ToolDefinition, fdef: FireModeDefinition)

    Permalink

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 FireModeSlot to any2stringadd[FireModeSlot] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (FireModeSlot, B)

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

    Permalink
    Definition Classes
    AnyRef → Any
  6. def AllAmmoTypes: List[equipment.Ammo.Value]

    Permalink
  7. def AmmoType: equipment.Ammo.Value

    Permalink

    This is a reference to the Ammo.Value whose AmmoBoxDefinition should be loaded into box.

    This is a reference to the Ammo.Value whose AmmoBoxDefinition should be loaded into box. It may not be the correct Ammo.Value whose AmmoBoxDefinition is loaded into box such as is the case during ammunition swaps. Generally, convert from this index, to the index in the fire mode's ammunition list, to the index in the ToolDefinition's ammunition list.

    returns

    the Ammo type that should be loaded into the magazine right now

  8. def AmmoTypeIndex: Int

    Permalink
  9. def AmmoTypeIndex_=(index: Int): Int

    Permalink
  10. def Box: AmmoBox

    Permalink
  11. def Box_=(toBox: AmmoBox): Option[AmmoBox]

    Permalink
  12. def Chamber: Int

    Permalink
  13. def Chamber_=(chmbr: Int): Int

    Permalink
  14. def Definition: FireModeDefinition

    Permalink
  15. def Magazine: Int

    Permalink
  16. def Magazine_=(mag: Int): Int

    Permalink
  17. def Tool: ToolDefinition

    Permalink
  18. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. def ensuring(cond: (FireModeSlot) ⇒ Boolean, msg: ⇒ Any): FireModeSlot

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  26. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  29. def hashCode(): Int

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  35. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  36. final def wait(): Unit

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

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

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

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

Inherited from AnyRef

Inherited from Any

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

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

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

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

Ungrouped