zombie.inventory.types
Class Radio

java.lang.Object
  extended by zombie.inventory.InventoryItem
      extended by zombie.inventory.types.DrainableComboItem
          extended by zombie.inventory.types.Radio
All Implemented Interfaces:
Talker, IUpdater, Drainable

public class Radio
extends DrainableComboItem
implements Talker, IUpdater

Author:
LEMMY

Field Summary
 int lastAd
           
static int numAdverts
           
 boolean OneWay
           
 int playedAdverts
           
 java.lang.String sayLine
           
 Color SpeakColour
           
 int SpeakTime
           
 int timeSinceLastBroadcast
           
 
Fields inherited from class zombie.inventory.types.DrainableComboItem
ReplaceOnDeplete
 
Fields inherited from class zombie.inventory.InventoryItem
CanStack, CanStoreWater, CloseKillMove, col, Cooked, fatigueChange, IsWaterSource, jobDelta, jobType, mainCategory, ReplaceOnUseOn, worldItem
 
Constructor Summary
Radio(java.lang.String module, java.lang.String name, java.lang.String itemType, java.lang.String texName)
           
 
Method Summary
 java.lang.String getTalkerType()
           
 boolean IsSpeaking()
           
 void render()
           
 void renderlast()
           
 void Say(java.lang.String line)
           
 void update()
           
 
Methods inherited from class zombie.inventory.types.DrainableComboItem
CanStack, getDelta, getReplaceOnDeplete, getTicks, getTicksPerEquipUse, getUsedDelta, getUseDelta, isUseWhileEquiped, setDelta, setReplaceOnDeplete, setTicks, setTicksPerEquipUse, setUsedDelta, setUseDelta, setUseWhileEquiped, Use
 
Methods inherited from class zombie.inventory.InventoryItem
canBeActivated, canStoreWater, CopyModData, DoTooltip, finishupdate, getActualWeight, getAge, getB, getBoredomChange, getBurntString, getCat, getCategory, getCondition, getConditionMax, getConsumeMenu, getContainer, getContainerX, getContainerY, getCookedString, getCookingTime, getCount, getCurrentCondition, getDescription, getFatigueChange, getFullType, getG, getJobDelta, getJobType, getLightDistance, getLightStrength, getMinutesToBurn, getMinutesToCook, getModData, getModule, getName, getNewPlaceDir, getOffAge, getOffAgeMax, getOffString, getPlaceDir, getPreviousOwner, getR, getReplaceOnUse, getReplaceOnUseOn, getRightClickContainer, getScore, getScriptItem, getStressChange, getSwingAnim, getTaken, getTex, getTexture, getTextureBurnt, getTextureCooked, getTexturerotten, getType, getUnCookedString, getUnhappyChange, getUses, getWeight, getWorldItem, getWorldTexture, HowRotten, isActivated, isAlwaysWelcomeGift, isBurnt, isCanBandage, IsClothing, isCooked, isDisappearOnUse, IsDrainable, IsFood, isIsCookable, IsLiterature, IsRotten, isTorchCone, isWaterSource, IsWeapon, load, load, ModDataMatches, save, save, setActivated, setActualWeight, setAge, setAlwaysWelcomeGift, setAutoAge, setBoredomChange, setBurnt, setBurntString, setCanBandage, setCanBeActivated, setCat, setCondition, setConditionMax, setConsumeMenu, setContainer, SetContainerPosition, setContainerX, setContainerY, setCooked, setCookedString, setCookingTime, setCount, setDescription, setDisappearOnUse, setFatigueChange, setIsCookable, setIsWaterSource, setJobDelta, setJobType, setLightDistance, setLightStrength, setMinutesToBurn, setMinutesToCook, setModule, setName, setNewPlaceDir, setOffAge, setOffAgeMax, setOffString, setPlaceDir, setPreviousOwner, setReplaceOnUse, setReplaceOnUseOn, setRightClickContainer, setScriptItem, setStressChange, setSwingAnim, setTaken, setTexture, setTextureBurnt, setTextureCooked, setTexturerotten, setTorchCone, setType, setUnCookedString, setUnhappyChange, setUses, setWeight, setWorldItem, setWorldTexture, Use, Use, Use, UseItem
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numAdverts

public static int numAdverts

lastAd

public int lastAd

OneWay

public boolean OneWay

playedAdverts

public int playedAdverts

sayLine

public java.lang.String sayLine

SpeakColour

public Color SpeakColour

SpeakTime

public int SpeakTime

timeSinceLastBroadcast

public int timeSinceLastBroadcast
Constructor Detail

Radio

public Radio(java.lang.String module,
             java.lang.String name,
             java.lang.String itemType,
             java.lang.String texName)
Method Detail

IsSpeaking

public boolean IsSpeaking()
Specified by:
IsSpeaking in interface Talker

render

public void render()
Specified by:
render in interface IUpdater
Overrides:
render in class DrainableComboItem

renderlast

public void renderlast()
Specified by:
renderlast in interface IUpdater
Overrides:
renderlast in class DrainableComboItem

Say

public void Say(java.lang.String line)
Specified by:
Say in interface Talker

update

public void update()
Specified by:
update in interface IUpdater
Overrides:
update in class DrainableComboItem

getTalkerType

public java.lang.String getTalkerType()
Specified by:
getTalkerType in interface Talker