Package zombie.inventory.types
Class Radio
java.lang.Object
zombie.inventory.InventoryItem
zombie.inventory.types.Moveable
zombie.inventory.types.Radio
- All Implemented Interfaces:
Talker
,IUpdater
,WaveSignalDevice
public class Radio extends Moveable implements Talker, IUpdater, WaveSignalDevice
-
Field Summary
Fields Modifier and Type Field Description protected DeviceData
deviceData
protected boolean
doPowerTick
protected GameTime
gameTime
protected int
lastMin
protected int
listenCnt
Fields inherited from class zombie.inventory.types.Moveable
canBeDroppedOnFloor, worldSprite
Fields inherited from class zombie.inventory.InventoryItem
ActualWeight, Age, alcoholic, AlwaysWelcomeGift, boredomChange, Burnt, BurntString, byteData, CanBandage, CanStack, CanStoreWater, cat, CloseKillMove, col, Condition, ConditionMax, consumeMenu, container, containerX, containerY, Cooked, CookedString, CookingTime, Description, DisappearOnUse, extraItems, fatigueChange, FreshString, FrozenString, id, IsCookable, IsWaterSource, jobDelta, jobType, keepOnDeplete, LastAged, mainCategory, MinutesToBurn, MinutesToCook, module, name, newPlaceDir, OffAge, OffAgeMax, OffString, placeDir, previousOwner, replaceOnUse, ReplaceOnUseOn, requireInHandOrInventory, RequiresEquippedBothHands, rightClickContainer, ScriptItem, stressChange, swingAnim, Taken, texture, textureBurnt, textureCooked, texturerotten, type, UnCookedString, unhappyChange, uses, Weight, worldItem, WorldTexture
-
Constructor Summary
Constructors Constructor Description Radio(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4)
-
Method Summary
Modifier and Type Method Description void
AddDeviceText(java.lang.String string, float float1, float float2, float float3, java.lang.String string2, int int1)
void
AddDeviceText(ChatMessage chatMessage, float float1, float float2, float float3, java.lang.String string, int int1)
void
doReceiveSignal(int int1)
float
getDelta()
DeviceData
getDeviceData()
IsoPlayer
getPlayer()
int
getSaveType()
java.lang.String
getSayLine()
IsoGridSquare
getSquare()
java.lang.String
getTalkerType()
float
getX()
float
getY()
float
getZ()
boolean
HasPlayerInRange()
boolean
IsSpeaking()
void
load(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1)
boolean
ReadFromWorldSprite(java.lang.String string)
void
render()
void
renderlast()
void
save(java.nio.ByteBuffer byteBuffer, boolean boolean1)
void
Say(java.lang.String string)
void
setDelta(float float1)
void
setDeviceData(DeviceData deviceData)
void
update()
Methods inherited from class zombie.inventory.types.Moveable
CanBeDroppedOnFloor, getCustomNameFull, getLightB, getLightBulbItem, getLightDelta, getLightG, getLightPower, getLightR, getMovableFullName, getName, getSpriteGrid, getWorldSprite, isLight, isLightHasBattery, isLightUseBattery, isMultiGridAnchor, setLight, setLightB, setLightBulbItem, setLightDelta, setLightG, setLightHasBattery, setLightPower, setLightR, setLightUseBattery, setWorldSprite
Methods inherited from class zombie.inventory.InventoryItem
addExtraItem, canBeActivated, canBeRemote, CanStack, canStoreWater, copyConditionModData, CopyModData, doBuildingtStash, DoTooltip, DoTooltip, finishupdate, getA, getActualWeight, getAge, getAlcoholPower, getB, getBandagePower, getBoredomChange, getBrakeForce, getBreakSound, getBurntString, getByteData, getCat, getCategory, getChanceToSpawnDamaged, getColor, getColorBlue, getColorGreen, getColorInfo, getColorRed, getCondition, getConditionLowerNormal, getConditionLowerOffroad, getConditionMax, getConsumeMenu, getContainer, getContainerX, getContainerY, getContentsWeight, getCookedString, getCookingTime, getCount, getCountDownSound, getCurrentCondition, getCustomMenuOption, getDescription, getDisplayCategory, getDisplayName, getEngineLoudness, getEquipParent, getEquippedWeight, getEvolvedRecipeName, getExplosionSound, getExtraItems, getFatigueChange, getFullType, getG, getHaveBeenRepaired, getID, getInvHeat, getItemCapacity, getItemHeat, getItemWhenDry, getJobDelta, getJobType, getKeyId, getLastAged, getLightDistance, getLightStrength, getMap, getMaxCapacity, getMechanicType, getMeltingTime, getMetalValue, getMinutesToBurn, getMinutesToCook, getModData, getModule, getNewPlaceDir, getOffAge, getOffAgeMax, getOffString, getOutermostContainer, getPlaceDir, getPreviousOwner, getR, getReduceInfectionPower, getRemoteControlID, getRemoteRange, getReplaceOnBreak, getReplaceOnUse, getReplaceOnUseOn, getReplaceOnUseOnString, getRequireInHandOrInventory, getRightClickContainer, getScore, getScriptItem, getStressChange, getSuspensionCompression, getSuspensionDamping, getSwingAnim, getTaken, getTex, getTexture, getTextureBurnt, getTextureCooked, getTexturerotten, getTooltip, getType, getUnCookedString, getUnequippedWeight, getUnhappyChange, getUses, getWeight, getWetCooldown, getWheelFriction, getWorker, getWorldItem, getWorldTexture, hasModData, haveExtraItems, HowRotten, isActivated, isAlcoholic, isAlwaysWelcomeGift, isBeingFilled, isBroken, isBurnt, isCanBandage, IsClothing, isConditionAffectsCapacity, isCooked, isCustomColor, isCustomName, isCustomWeight, isDisappearOnUse, IsDrainable, isEquipped, isFavorite, isFishingLure, IsFood, isInfected, isInLocalPlayerInventory, isInPlayerInventory, isIsCookable, IsLiterature, isRemoteController, isRequiresEquippedBothHands, IsRotten, isTaintedWater, isTorchCone, isTrap, isTwoHandWeapon, isWaterSource, IsWeapon, isWet, ModDataMatches, saveWithSize, setActivated, setActualWeight, setAge, setAlcoholic, setAlcoholPower, setAlwaysWelcomeGift, setAutoAge, setBandagePower, setBeingFilled, setBoredomChange, setBrakeForce, setBreakSound, setBroken, setBurnt, setBurntString, setCanBandage, setCanBeActivated, setCanBeRemote, setCat, setChanceToSpawnDamaged, setColor, setColorBlue, setColorGreen, setColorRed, setCondition, setCondition, setConditionFromModData, setConditionLowerNormal, setConditionLowerOffroad, setConditionMax, setConsumeMenu, setContainer, SetContainerPosition, setContainerX, setContainerY, setCooked, setCookedString, setCookingTime, setCount, setCountDownSound, setCustomColor, setCustomMenuOption, setCustomName, setCustomWeight, setDescription, setDisappearOnUse, setDisplayCategory, setEngineLoudness, setEquipParent, setEvolvedRecipeName, setExplosionSound, setFatigueChange, setFavorite, setFishingLure, setHaveBeenRepaired, setID, setInfected, setIsCookable, setIsWaterSource, setItemCapacity, setItemHeat, setItemWhenDry, setJobDelta, setJobType, setKeyId, setLastAged, setLightDistance, setLightStrength, setMap, setMaxCapacity, setMechanicType, setMeltingTime, setMetalValue, setMinutesToBurn, setMinutesToCook, setModule, setName, setNewPlaceDir, setOffAge, setOffAgeMax, setOffString, setPlaceDir, setPreviousOwner, setReduceInfectionPower, setRemoteControlID, setRemoteController, setRemoteRange, setReplaceOnBreak, setReplaceOnUse, setReplaceOnUseOn, setRequireInHandOrInventory, setRightClickContainer, setScriptItem, setStashMap, setStressChange, setSuspensionCompression, setSuspensionDamping, setSwingAnim, setTaintedWater, setTaken, setTexture, setTextureBurnt, setTextureCooked, setTexturerotten, setTooltip, setTorchCone, setTrap, setTwoHandWeapon, setType, setUnCookedString, setUnhappyChange, setUses, setWeight, setWet, setWetCooldown, setWheelFriction, setWorker, setWorldItem, setWorldTexture, shouldUpdateInWorld, storeInByteData, updateAge, updateSound, Use, Use, Use, Use, UseItem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
deviceData
-
gameTime
-
lastMin
protected int lastMin -
doPowerTick
protected boolean doPowerTick -
listenCnt
protected int listenCnt
-
-
Constructor Details
-
Radio
public Radio(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4)
-
-
Method Details
-
getDeviceData
- Specified by:
getDeviceData
in interfaceWaveSignalDevice
-
setDeviceData
- Specified by:
setDeviceData
in interfaceWaveSignalDevice
-
doReceiveSignal
public void doReceiveSignal(int int1) -
AddDeviceText
public void AddDeviceText(java.lang.String string, float float1, float float2, float float3, java.lang.String string2, int int1)- Specified by:
AddDeviceText
in interfaceWaveSignalDevice
-
AddDeviceText
public void AddDeviceText(ChatMessage chatMessage, float float1, float float2, float float3, java.lang.String string, int int1) -
HasPlayerInRange
public boolean HasPlayerInRange()- Specified by:
HasPlayerInRange
in interfaceWaveSignalDevice
-
ReadFromWorldSprite
public boolean ReadFromWorldSprite(java.lang.String string)- Overrides:
ReadFromWorldSprite
in classMoveable
-
getSaveType
public int getSaveType()- Overrides:
getSaveType
in classMoveable
-
getDelta
public float getDelta()- Specified by:
getDelta
in interfaceWaveSignalDevice
-
setDelta
public void setDelta(float float1)- Specified by:
setDelta
in interfaceWaveSignalDevice
-
getSquare
- Specified by:
getSquare
in interfaceWaveSignalDevice
-
getX
public float getX()- Specified by:
getX
in interfaceWaveSignalDevice
-
getY
public float getY()- Specified by:
getY
in interfaceWaveSignalDevice
-
getZ
public float getZ()- Specified by:
getZ
in interfaceWaveSignalDevice
-
getPlayer
-
render
public void render() -
renderlast
public void renderlast()- Specified by:
renderlast
in interfaceIUpdater
-
update
public void update()- Specified by:
update
in interfaceIUpdater
- Overrides:
update
in classInventoryItem
-
IsSpeaking
public boolean IsSpeaking()- Specified by:
IsSpeaking
in interfaceTalker
-
Say
public void Say(java.lang.String string) -
getSayLine
public java.lang.String getSayLine()- Specified by:
getSayLine
in interfaceTalker
-
getTalkerType
public java.lang.String getTalkerType()- Specified by:
getTalkerType
in interfaceTalker
-
save
public void save(java.nio.ByteBuffer byteBuffer, boolean boolean1) throws java.io.IOException -
load
public void load(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1) throws java.io.IOException
-