Barotrauma Client Doc
Barotrauma.Graph Class Reference

Public Member Functions

 Graph (int arraySize=100)
 
float LargestValue ()
 
float Average ()
 
void Update (float newValue)
 
delegate void GraphDelegate (SpriteBatch spriteBatch, float value, int order, Vector2 position)
 
void Draw (SpriteBatch spriteBatch, Rectangle rect, float? maxValue=null, float xOffset=0, Color? color=null, GraphDelegate doForEachValue=null)
 

Detailed Description

Definition at line 8 of file Graph.cs.

Constructor & Destructor Documentation

◆ Graph()

Barotrauma.Graph.Graph ( int  arraySize = 100)

Definition at line 12 of file Graph.cs.

Member Function Documentation

◆ Average()

float Barotrauma.Graph.Average ( )

Definition at line 27 of file Graph.cs.

◆ Draw()

void Barotrauma.Graph.Draw ( SpriteBatch  spriteBatch,
Rectangle  rect,
float?  maxValue = null,
float  xOffset = 0,
Color?  color = null,
GraphDelegate  doForEachValue = null 
)

Definition at line 43 of file Graph.cs.

◆ GraphDelegate()

delegate void Barotrauma.Graph.GraphDelegate ( SpriteBatch  spriteBatch,
float  value,
int  order,
Vector2  position 
)

◆ LargestValue()

float Barotrauma.Graph.LargestValue ( )

Definition at line 17 of file Graph.cs.

◆ Update()

void Barotrauma.Graph.Update ( float  newValue)

Definition at line 32 of file Graph.cs.