com.planet_ink.coffee_mud.Items.interfaces
Interface TechComponent

All Superinterfaces:
Affectable, Behavable, java.lang.Cloneable, CMObject, java.lang.Comparable<CMObject>, Contingent, DBIdentifiable, Electronics, Environmental, Item, Modifiable, MsgListener, Physical, PhysicalAgent, Readable, Rider, StatsAffecting, Technical, Tickable, Wearable
All Known Subinterfaces:
ShipEngine, ShipWarComponent
All Known Implementing Classes:
GenBussardCollector, GenCompBattery, GenCompEnviroSystem, GenCompGenerator, GenComputerConsole, GenElecCompItem, GenElecCompSensor, GenFuellessGenerator, GenGraviticSensor, GenLightSwitch, GenShipDampener, GenShipEngine, GenShipGravityGen, GenShipPanel, GenShipShieldGenerator, GenShipThruster, GenShipWeapon, GenSolarGenerator, GenSpaceDrive, GenWaterPowerGenerator, GenWindGenerator, StdCompBattery, StdCompFuelConsumer, StdCompFuellessGenerator, StdCompGenerator, StdCompPanel, StdComputerConsole, StdElecCompContainer, StdElecCompItem, StdElecCompSensor, StdShipDampener, StdShipEngine, StdShipFuellessThruster, StdShipGravityGen, StdShipShieldGenerator, StdShipThruster, StdShipWeapon

public interface TechComponent
extends Electronics

A TechComponent is a type of electronics item that must be installed into a panel that can accept it. Typically for space ships.


Nested Class Summary
static class TechComponent.ShipDir
          The ThrustPort enum is for the different thrust ports, denoting the port, by its direction location.
 
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Technical
Technical.TechCommand, Technical.TechType
 
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable
Wearable.CODES
 
Field Summary
 
Fields inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable
DEFAULT_WORN_CODES, DEFAULT_WORN_DEPENDENCYGRID, DEFAULT_WORN_DESCS, DEFAULT_WORN_ORDER, DEFAULT_WORN_USUAL_NAMES, DEFAULT_WORN_WEIGHT_POINTS, DEFAULT_WORN_WEIGHTS, FILTER_ANY, FILTER_MOBINVONLY, FILTER_ROOMONLY, FILTER_UNWORNONLY, FILTER_WORNONLY, HIGHEST_WORN_CODE, IN_INVENTORY, WORN_ABOUT_BODY, WORN_ARMS, WORN_BACK, WORN_EARS, WORN_EYES, WORN_FEET, WORN_FLOATING_NEARBY, WORN_HANDS, WORN_HEAD, WORN_HELD, WORN_LEFT_FINGER, WORN_LEFT_WRIST, WORN_LEGS, WORN_MOUTH, WORN_NECK, WORN_RIGHT_FINGER, WORN_RIGHT_WRIST, WORN_TORSO, WORN_WAIST, WORN_WIELD
 
Method Summary
 float getInstalledFactor()
          The installed factor is how well the equipment was installed.
 float getRechargeRate()
          Gets the amount of the capacity of this component that can gain power every time a power current is received.
 boolean isInstalled()
          Returns whether this item is installed properly, which is according to internal rules of each component type.
 void setInstalledFactor(float pct)
          The installed factor is how well the equipment was installed.
 void setRechargeRate(float pctCapPer)
          Sets the amount of the capacity of this component that can gain power every time a power current is received.
 
Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Electronics
activate, activated, getFinalManufacturer, getManufacturerName, powerCapacity, powerNeeds, powerRemaining, setManufacturerName, setPowerCapacity, setPowerRemaining
 
Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Technical
getTechType, setTechLevel, techLevel
 
Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Item
baseGoldValue, container, material, numberOfItems, owner, rawSecretIdentity, recursiveWeight, removeFromOwnerContainer, secretIdentity, setBaseValue, setContainer, setMaterial, setOwner, setSecretIdentity, setUsesRemaining, stopTicking, subjectToWearAndTear, ultimateContainer, usesRemaining, value
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Rider
riding, setRiding
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject
copyOf, ID, initializeClass, newInstance
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.DBIdentifiable
canSaveDatabaseID, databaseID, setDatabaseID
 
Methods inherited from interface com.planet_ink.coffee_mud.Items.interfaces.Wearable
amBeingWornProperly, amWearingAt, canWear, compareProperLocations, fitsOn, rawLogicalAnd, rawProperLocationBitmap, rawWornCode, setRawLogicalAnd, setRawProperLocationBitmap, setRawWornCode, unWear, wearAt, wearEvenIfImpossible, wearIfPossible, wearIfPossible, whereCantWear
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Readable
isReadable, readableText, setReadable, setReadableText
 

Method Detail

getInstalledFactor

float getInstalledFactor()
The installed factor is how well the equipment was installed. 0-1.0

Returns:
installed factor is how well the equipment was installed. 0-1.0
See Also:
setInstalledFactor(float)

setInstalledFactor

void setInstalledFactor(float pct)
The installed factor is how well the equipment was installed. 0-1.0

Parameters:
pct - installed factor is how well the equipment was installed. 0-1.0
See Also:
getInstalledFactor()

isInstalled

boolean isInstalled()
Returns whether this item is installed properly, which is according to internal rules of each component type.

Returns:
true if its installed, false if its just there.

setRechargeRate

void setRechargeRate(float pctCapPer)
Sets the amount of the capacity of this component that can gain power every time a power current is received.

Parameters:
pctCapPer - the amount of capacity per tick
See Also:
getRechargeRate()

getRechargeRate

float getRechargeRate()
Gets the amount of the capacity of this component that can gain power every time a power current is received.

Returns:
amtPer the amount of capacity per tick
See Also:
setRechargeRate(float)