Barotrauma Client Doc
Barotrauma.BackgroundCreature Class Reference
Inheritance diagram for Barotrauma.BackgroundCreature:
Barotrauma.ISteerable

Public Member Functions

 BackgroundCreature (BackgroundCreaturePrefab prefab, Vector2 position)
 
void Update (float deltaTime)
 
void DrawLightSprite (SpriteBatch spriteBatch, Camera cam)
 
void Draw (SpriteBatch spriteBatch, Camera cam)
 
Vector2 GetDrawPosition (Camera cam)
 
float GetScale ()
 
Rectangle GetExtents (Camera cam)
 

Public Attributes

bool Visible
 
readonly BackgroundCreaturePrefab Prefab
 
Swarm Swarm
 

Properties

Vector2[,] CurrentSpriteDeformation [get]
 
Vector2[,] CurrentLightSpriteDeformation [get]
 
Vector2 SimPosition [get]
 
Vector2 WorldPosition [get]
 
Vector2 Velocity [get]
 
Vector2 Steering [get, set]
 
- Properties inherited from Barotrauma.ISteerable
Vector2 Steering [get, set]
 
Vector2 Velocity [get]
 
Vector2 SimPosition [get]
 
Vector2 WorldPosition [get]
 

Detailed Description

Definition at line 11 of file BackgroundCreature.cs.

Constructor & Destructor Documentation

◆ BackgroundCreature()

Barotrauma.BackgroundCreature.BackgroundCreature ( BackgroundCreaturePrefab  prefab,
Vector2  position 
)

Definition at line 77 of file BackgroundCreature.cs.

Member Function Documentation

◆ Draw()

void Barotrauma.BackgroundCreature.Draw ( SpriteBatch  spriteBatch,
Camera  cam 
)

Definition at line 239 of file BackgroundCreature.cs.

◆ DrawLightSprite()

void Barotrauma.BackgroundCreature.DrawLightSprite ( SpriteBatch  spriteBatch,
Camera  cam 
)

Definition at line 234 of file BackgroundCreature.cs.

◆ GetDrawPosition()

Vector2 Barotrauma.BackgroundCreature.GetDrawPosition ( Camera  cam)

Definition at line 292 of file BackgroundCreature.cs.

◆ GetExtents()

Rectangle Barotrauma.BackgroundCreature.GetExtents ( Camera  cam)

Definition at line 308 of file BackgroundCreature.cs.

◆ GetScale()

float Barotrauma.BackgroundCreature.GetScale ( )

Definition at line 303 of file BackgroundCreature.cs.

◆ Update()

void Barotrauma.BackgroundCreature.Update ( float  deltaTime)

Definition at line 132 of file BackgroundCreature.cs.

Member Data Documentation

◆ Prefab

readonly BackgroundCreaturePrefab Barotrauma.BackgroundCreature.Prefab

Definition at line 19 of file BackgroundCreature.cs.

◆ Swarm

Swarm Barotrauma.BackgroundCreature.Swarm

Definition at line 41 of file BackgroundCreature.cs.

◆ Visible

bool Barotrauma.BackgroundCreature.Visible

Definition at line 17 of file BackgroundCreature.cs.

Property Documentation

◆ CurrentLightSpriteDeformation

Vector2 [,] Barotrauma.BackgroundCreature.CurrentLightSpriteDeformation
get

Definition at line 50 of file BackgroundCreature.cs.

◆ CurrentSpriteDeformation

Vector2 [,] Barotrauma.BackgroundCreature.CurrentSpriteDeformation
get

Definition at line 45 of file BackgroundCreature.cs.

◆ SimPosition

Vector2 Barotrauma.BackgroundCreature.SimPosition
get

Definition at line 56 of file BackgroundCreature.cs.

◆ Steering

Vector2 Barotrauma.BackgroundCreature.Steering
getset

Definition at line 71 of file BackgroundCreature.cs.

◆ Velocity

Vector2 Barotrauma.BackgroundCreature.Velocity
get

Definition at line 66 of file BackgroundCreature.cs.

◆ WorldPosition

Vector2 Barotrauma.BackgroundCreature.WorldPosition
get

Definition at line 61 of file BackgroundCreature.cs.