Barotrauma Client Doc
Barotrauma.GameScreen Class Reference
Inheritance diagram for Barotrauma.GameScreen:
Barotrauma.Screen Barotrauma.Screen

Public Member Functions

 GameScreen ()
 
override void Select ()
 
override void Deselect ()
 
override void Update (double deltaTime)
 Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio. More...
 
 GameScreen (GraphicsDevice graphics)
 
override void AddToGUIUpdateList ()
 By default, creates a new frame for the screen and adds all elements to the gui update list. More...
 
override void Draw (double deltaTime, GraphicsDevice graphics, SpriteBatch spriteBatch)
 
void DrawMap (GraphicsDevice graphics, SpriteBatch spriteBatch, double deltaTime)
 
- Public Member Functions inherited from Barotrauma.Screen
void ColorFade (Color from, Color to, float duration)
 
virtual void OnFileDropped (string filePath, string extension)
 
virtual void Release ()
 

Public Attributes

readonly Effect DamageEffect
 

Properties

override Camera Cam [get]
 
double GameTime [get]
 
Effect PostProcessEffect [get]
 
Effect GradientEffect [get]
 
Effect GrainEffect [get]
 
Effect ThresholdTintEffect [get]
 
Effect BlueprintEffect [get, set]
 
- Properties inherited from Barotrauma.Screen
static Screen Selected [get]
 
virtual Camera Cam [get]
 
virtual bool IsEditor [get]
 
GUIFrame Frame [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from Barotrauma.Screen
static void SelectNull ()
 

Detailed Description

Constructor & Destructor Documentation

◆ GameScreen() [1/2]

Barotrauma.GameScreen.GameScreen ( )

◆ GameScreen() [2/2]

Barotrauma.GameScreen.GameScreen ( GraphicsDevice  graphics)

Member Function Documentation

◆ AddToGUIUpdateList()

override void Barotrauma.GameScreen.AddToGUIUpdateList ( )
virtual

By default, creates a new frame for the screen and adds all elements to the gui update list.

Reimplemented from Barotrauma.Screen.

Definition at line 70 of file BarotraumaClient/ClientSource/Screens/GameScreen.cs.

◆ Deselect()

override void Barotrauma.GameScreen.Deselect ( )
virtual

Reimplemented from Barotrauma.Screen.

Definition at line 76 of file BarotraumaShared/SharedSource/Screens/GameScreen.cs.

◆ Draw()

override void Barotrauma.GameScreen.Draw ( double  deltaTime,
GraphicsDevice  graphics,
SpriteBatch  spriteBatch 
)
virtual

Reimplemented from Barotrauma.Screen.

Definition at line 98 of file BarotraumaClient/ClientSource/Screens/GameScreen.cs.

◆ DrawMap()

void Barotrauma.GameScreen.DrawMap ( GraphicsDevice  graphics,
SpriteBatch  spriteBatch,
double  deltaTime 
)

◆ Select()

override void Barotrauma.GameScreen.Select ( )
virtual

Reimplemented from Barotrauma.Screen.

Definition at line 46 of file BarotraumaShared/SharedSource/Screens/GameScreen.cs.

◆ Update()

override void Barotrauma.GameScreen.Update ( double  deltaTime)
virtual

Allows the game to run logic such as updating the world, checking for collisions, gathering input, and playing audio.

Reimplemented from Barotrauma.Screen.

Definition at line 99 of file BarotraumaShared/SharedSource/Screens/GameScreen.cs.

Member Data Documentation

◆ DamageEffect

readonly Effect Barotrauma.GameScreen.DamageEffect

Property Documentation

◆ BlueprintEffect

Effect Barotrauma.GameScreen.BlueprintEffect
getset

◆ Cam

override Camera Barotrauma.GameScreen.Cam
get

◆ GameTime

double Barotrauma.GameScreen.GameTime
get

◆ GradientEffect

Effect Barotrauma.GameScreen.GradientEffect
get

◆ GrainEffect

Effect Barotrauma.GameScreen.GrainEffect
get

◆ PostProcessEffect

Effect Barotrauma.GameScreen.PostProcessEffect
get

◆ ThresholdTintEffect

Effect Barotrauma.GameScreen.ThresholdTintEffect
get