C# Class Ctrl_Space.Gameplay.GameObject

Datei anzeigen Open project: vkd/Ctrl-Space Class Usage Examples

Public Properties

Property Type Description
Alpha float
Collisions List
Color Color
DrawHP bool
HP int
Id int
IsDestroyed bool
Mass float
MaxHP int
Position Vector2
Rotation float
RotationSpeed float
Size float

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch, GameTime gameTime, Vector2 offset, Camera camera, DebugGeometry debugGeometry ) : void
GameObject ( ) : System
GetTexture ( ) : MetaTexture
ResetGameObject ( ) : void
Update ( World world, Particles particles ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch spriteBatch, GameTime gameTime, Vector2 offset, Camera camera, DebugGeometry debugGeometry ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
gameTime Microsoft.Xna.Framework.GameTime
offset Vector2
camera Ctrl_Space.Graphics.Camera
debugGeometry Ctrl_Space.Graphics.DebugGeometry
return void

GameObject() public method

public GameObject ( ) : System
return System

GetTexture() public abstract method

public abstract GetTexture ( ) : MetaTexture
return Ctrl_Space.Graphics.MetaTexture

ResetGameObject() public method

public ResetGameObject ( ) : void
return void

Update() public method

public Update ( World world, Particles particles ) : void
world World
particles Ctrl_Space.Graphics.Particles
return void

Property Details

Alpha public_oe property

public float Alpha
return float

Collisions public_oe property

public List Collisions
return List

Color public_oe property

public Color Color
return Color

DrawHP public_oe property

public bool DrawHP
return bool

HP public_oe property

public int HP
return int

Id public_oe property

public int Id
return int

IsDestroyed public_oe property

public bool IsDestroyed
return bool

Mass public_oe property

public float Mass
return float

MaxHP public_oe property

public int MaxHP
return int

Position public_oe property

public Vector2 Position
return Vector2

Rotation public_oe property

public float Rotation
return float

RotationSpeed public_oe property

public float RotationSpeed
return float

Size public_oe property

public float Size
return float