|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TechLibrary
Method Summary | |
---|---|
void |
addManufacturer(Manufacturer manufacturer)
Adds and saves a new manufacturer to the list. |
void |
delManufacturer(Manufacturer manufacturer)
Removes a new manufacturer from the list. |
void |
fixItemTechLevel(Electronics I,
int newTechLevel)
"Fixes" the tech level of the given item by making sure it's manufacturer is non-random, and by assigning a random tech level within the valid range, and modifying its name and displaytext to reflect the new tech level |
java.util.Iterator<Room> |
getComputerRooms(java.lang.String key)
Return all the rooms containing computers in the given circuit key. |
java.util.Iterator<Computer> |
getComputers(java.lang.String key)
Return all the computers in the given circuit key. |
Manufacturer |
getDefaultManufacturer()
Retrieves the default manufacturer for new products |
java.lang.String |
getElectronicsKey(CMObject o)
Returns the appropriate electronics key for this electronic item, area, or room. |
int |
getGlobalTechLevel()
Returns the global tech level |
double |
getGravityForce(SpaceObject S,
SpaceObject cO)
If the two given objects are within an appropriate distance from each other, this will return the correct amount of acceleration g-force applied by the second object to the first. |
java.util.List<Electronics> |
getMakeRegisteredElectronics(java.lang.String key)
For the given key, return an eclusive list of all the electronics that belong to that key. |
java.util.List<java.lang.String> |
getMakeRegisteredKeys()
Returns a new exclusive list of all the registered electronics keys being processed. |
Manufacturer |
getManufacturer(java.lang.String name)
Retrieves the manufacturer of the given name, or null if it is not found. |
Manufacturer |
getManufacturerOf(Electronics E,
java.lang.String name)
Retrieves the manufacturer of the given name, or null if it is not found. |
int |
getRandomGlobalTechLevel()
Returns a random gaussian-distributed tech level from the current low tech level bound to bound+10. |
boolean |
isCurrentActive(java.lang.String key)
Returns whether the currents at the given key are still active. |
java.util.Iterator<Manufacturer> |
manufacterers()
Returns an iterator of manufacturers |
java.lang.String |
registerElectrics(Electronics E,
java.lang.String oldKey)
Registers an electronic component that belongs in a complex circuitry, like a panel or a generator |
boolean |
seekBatteryPower(ElecPanel E,
java.lang.String key)
Certain Key Systems may automatically force batteries in their circuit to activate in order to provide that system with power. |
void |
unregisterAllElectronics(java.lang.String oldKey)
Unregisters all electronic components that belonged in a complex circuitry, like a panel or a generator, of the given key. |
void |
unregisterElectronics(Electronics E,
java.lang.String oldKey)
Unregisters an electronic component that belonged in a complex circuitry, like a panel or a generator. |
void |
updateManufacturer(Manufacturer manufacturer)
Updates a new manufacturer in the list. |
Methods inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.CMLibrary |
---|
activate, getServiceClient, L, propertiesLoaded, shutdown |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
copyOf, ID, initializeClass, name, newInstance |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
java.lang.String getElectronicsKey(CMObject o)
o
- the object to inspect
void unregisterElectronics(Electronics E, java.lang.String oldKey)
E
- the electronic component to unregisteroldKey
- the last key registered to this devicevoid unregisterAllElectronics(java.lang.String oldKey)
oldKey
- the last key registered to this devicejava.lang.String registerElectrics(Electronics E, java.lang.String oldKey)
E
- the electronic component to registeroldKey
- the last key registered to this device
boolean isCurrentActive(java.lang.String key)
key
- the current key
java.util.List<java.lang.String> getMakeRegisteredKeys()
java.util.List<Electronics> getMakeRegisteredElectronics(java.lang.String key)
key
- the key to return electronics for
boolean seekBatteryPower(ElecPanel E, java.lang.String key)
E
- the key device to seek powerkey
- this devices key
Manufacturer getDefaultManufacturer()
void addManufacturer(Manufacturer manufacturer)
manufacturer
- the one to addvoid delManufacturer(Manufacturer manufacturer)
manufacturer
- the one to removevoid updateManufacturer(Manufacturer manufacturer)
manufacturer
- the one to updateManufacturer getManufacturer(java.lang.String name)
name
- the manufacturer to fetch
Manufacturer getManufacturerOf(Electronics E, java.lang.String name)
E
- for random manufacturers, the item to checkname
- the manufacturer to fetch
java.util.Iterator<Manufacturer> manufacterers()
java.util.Iterator<Room> getComputerRooms(java.lang.String key)
key
- the circuit key
java.util.Iterator<Computer> getComputers(java.lang.String key)
key
- the circuit key
int getRandomGlobalTechLevel()
int getGlobalTechLevel()
void fixItemTechLevel(Electronics I, int newTechLevel)
I
- An electronics item that needs fixingnewTechLevel
- the new tech leveldouble getGravityForce(SpaceObject S, SpaceObject cO)
S
- the object being pulledcO
- the object pulling
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |