trait BuildingLogic extends AnyRef
Logic that dictates what happens to a particular type of building when it receives certain messages on its governing control. Try not to transform this into instance classes.
- Source
- BuildingLogic.scala
- Alphabetic
- By Inheritance
- BuildingLogic
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def alertToFactionChange(details: BuildingWrapper, building: Building): Behavior[Command]
A facility that influences this facility has changed its faction affiliation.
A facility that influences this facility has changed its faction affiliation. Update all related subsystems and statuses of this facility.
- details
package class that conveys the important information
- building
the neighbor facility that has had its faction changed
- returns
the next behavior for this control agency messaging system
- abstract def amenityStateChange(details: BuildingWrapper, entity: Amenity, data: Option[Any]): Behavior[Command]
Update the status of the relationship between a component installed in a facility and the facility's status itself.
Update the status of the relationship between a component installed in a facility and the facility's status itself.
- details
package class that conveys the important information
- entity
the installed
Amenity
entity- data
optional information
- returns
the next behavior for this control agency messaging system
- abstract def ntu(details: BuildingWrapper, msg: Command): Behavior[Command]
The facility has had its nanite resources changed in some way.
The facility has had its nanite resources changed in some way. Update all related subsystems and statuses of this facility.
- details
package class that conveys the important information
- msg
the original message that instigated this upoate
- returns
the next behavior for this control agency messaging system
- See also
NtuCommand.Command
- abstract def ntuDepleted(details: BuildingWrapper): Behavior[Command]
The facility has run out of nanite resources.
The facility has run out of nanite resources. Update all related subsystems and statuses.
- details
package class that conveys the important information
- returns
the next behavior for this control agency messaging system
- abstract def powerOff(details: BuildingWrapper): Behavior[Command]
The facility has lost power.
The facility has lost power. Update all related subsystems and statuses.
- details
package class that conveys the important information
- returns
the next behavior for this control agency messaging system
- abstract def powerOn(details: BuildingWrapper): Behavior[Command]
The facility has regained power.
The facility has regained power. Update all related subsystems and statuses.
- details
package class that conveys the important information
- returns
the next behavior for this control agency messaging system
- abstract def setFactionTo(details: BuildingWrapper, faction: types.PlanetSideEmpire.Value): Behavior[Command]
The facility will change its faction affiliation.
The facility will change its faction affiliation. Update all related subsystems and statuses.
- details
package class that conveys the important information
- faction
the faction affiliation to which the facility will update
- returns
the next behavior for this control agency messaging system
- abstract def suppliedWithNtu(details: BuildingWrapper): Behavior[Command]
The facility has had its nanite resources restored, even if partially.
The facility has had its nanite resources restored, even if partially. Update all related subsystems and statuses.
- details
package class that conveys the important information
- returns
the next behavior for this control agency messaging system
Concrete 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
- 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
- def log(details: BuildingWrapper): Logger
Produce a log that borrows from the building name.
Produce a log that borrows from the building name.
- details
package class that conveys the important information
- returns
the custom log
- Attributes
- protected
- 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()
- def wrapper(building: Building, context: ActorContext[Command], details: BuildingControlDetails): BuildingWrapper
Produce an appropriate representation of the facility for the given logic implementation.
Produce an appropriate representation of the facility for the given logic implementation.
- building
building entity
- context
message-passing reference
- details
temporary storage to retain still-allocating reousces during facility startup
- returns
the representation of the building and assorted connecting and reporting outlets