Class FoodMeter
- Namespace
- HUD
- Assembly
- Assembly-CSharp.dll
public class FoodMeter : HudPart
- Inheritance
-
FoodMeter
- Inherited Members
-
Constructors
FoodMeter(HUD, int, int, Player, int)
public FoodMeter(HUD hud, int maxFood, int survivalLimit, Player associatedPup = null, int pupNumber = 0)
Parameters
hud HUD
maxFood int
survivalLimit int
associatedPup Player
pupNumber int
Fields
abstractPup
public AbstractCreature abstractPup
Field Value
- AbstractCreature
circles
public List<FoodMeter.MeterCircle> circles
Field Value
- List<FoodMeter.MeterCircle>
darkFade
Field Value
- FSprite
deathFade
Field Value
- float
downInCorner
public float downInCorner
Field Value
- float
eatCircleDelay
public int eatCircleDelay
Field Value
- int
eatCircles
Field Value
- int
fade
Field Value
- float
forceSleep
Field Value
- float
initPlopCircle
public int initPlopCircle
Field Value
- int
initPlopDelay
Field Value
- int
lastCount
Field Value
- int
lastFade
Field Value
- float
lastPos
Field Value
- Vector2
lastShowSurvLim
public float lastShowSurvLim
Field Value
- float
lineSprite
public FSprite lineSprite
Field Value
- FSprite
maxFood
Field Value
- int
notInShelter
Field Value
- int
pos
Field Value
- Vector2
pup
Field Value
- Player
pupBars
public List<FoodMeter> pupBars
Field Value
- List<FoodMeter>
pupNumber
Field Value
- int
quarterPipShower
public FoodMeter.QuarterPipShower quarterPipShower
Field Value
- FoodMeter.QuarterPipShower
refuseCounter
Field Value
- int
showCount
Field Value
- int
showCountDelay
public int showCountDelay
Field Value
- int
showKarmaChange
public bool showKarmaChange
Field Value
- bool
showSurvLim
Field Value
- float
sleepScreenPhase
public int sleepScreenPhase
Field Value
- int
survLimFrom
Field Value
- float
survLimProg
Field Value
- float
survLimTo
Field Value
- float
survivalLimit
Field Value
- int
timeCounter
Field Value
- int
visibleCounter
public int visibleCounter
Field Value
- int
Properties
CurrentPupFood
public int CurrentPupFood { get; }
Property Value
- int
IsPupFoodMeter
public bool IsPupFoodMeter { get; }
Property Value
- bool
PupHasDied
public bool PupHasDied { get; }
Property Value
- bool
PupInDanger
public bool PupInDanger { get; }
Property Value
- bool
ShowSurvivalLimit
public int ShowSurvivalLimit { get; }
Property Value
- int
fContainer
public FContainer fContainer { get; }
Property Value
- FContainer
Methods
CharSelectUpdate()
public void CharSelectUpdate()
CircleDistance(float)
public float CircleDistance(float timeStacker)
Parameters
timeStacker float
Returns
- float
DeathUpdate()
public void DeathUpdate()
Draw(float)
public override void Draw(float timeStacker)
Parameters
timeStacker float
DrawPos(float)
public Vector2 DrawPos(float timeStacker)
Parameters
timeStacker float
Returns
- Vector2
GameUpdate()
MoveSurvivalLimit(float, bool)
public void MoveSurvivalLimit(float to, bool smooth)
Parameters
to float
smooth bool
NewShowCount(int)
public void NewShowCount(int cnt)
Parameters
cnt int
RefuseFood()
SleepUpdate()
public void SleepUpdate()
TotalWidth(float)
public float TotalWidth(float timeStacker)
Parameters
timeStacker float
Returns
- float
Update()
public override void Update()
UpdateShowCount()
public void UpdateShowCount()