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
- Alphabetic
- By Inheritance
- FireModeSlot
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new FireModeSlot(tdef: ToolDefinition, fdef: FireModeDefinition)
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
- def AllAmmoTypes: List[equipment.Ammo.Value]
- def AmmoType: equipment.Ammo.Value
This is a reference to the
Ammo.Value
whoseAmmoBoxDefinition
should be loaded intobox
.This is a reference to the
Ammo.Value
whoseAmmoBoxDefinition
should be loaded intobox
. It may not be the correctAmmo.Value
whoseAmmoBoxDefinition
is loaded intobox
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 theToolDefinition
's ammunition list.- returns
the
Ammo
type that should be loaded into the magazine right now
- def AmmoTypeIndex: Int
- def AmmoTypeIndex_=(index: Int): Int
- def Box: AmmoBox
- def Box_=(toBox: AmmoBox): Option[AmmoBox]
- def Chamber: Int
- def Chamber_=(chmbr: Int): Int
- def Definition: FireModeDefinition
- def Magazine: Int
- def Magazine_=(mag: Int): Int
- def MaxMagazine(): Int
- def Tool: ToolDefinition
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- 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])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()