C# Class LDEngine.Entities.Entity

Exibir arquivo Open project: GarethIW/LDEngine

Public Properties

Property Type Description
Active bool
HitBox Microsoft.Xna.Framework.Rectangle
HitPolyPoints List
Position Vector2
Rotation float
Speed Vector2
SpriteSheet Microsoft.Xna.Framework.Graphics.Texture2D

Public Methods

Method Description
Draw ( SpriteBatch sb ) : void
Entity ( Microsoft.Xna.Framework.Graphics.Texture2D spritesheet, Rectangle hitbox, List hitPolyPoints, Vector2 hitboxoffset ) : System
HandleInput ( InputState input ) : void
OnBoxCollision ( Entity collided, Rectangle intersect ) : void
OnPolyCollision ( Entity collided ) : void
Reset ( ) : void
Update ( GameTime gameTime ) : void
Update ( GameTime gameTime, Map gameMap ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

Entity() public method

public Entity ( Microsoft.Xna.Framework.Graphics.Texture2D spritesheet, Rectangle hitbox, List hitPolyPoints, Vector2 hitboxoffset ) : System
spritesheet Microsoft.Xna.Framework.Graphics.Texture2D
hitbox Microsoft.Xna.Framework.Rectangle
hitPolyPoints List
hitboxoffset Vector2
return System

HandleInput() public method

public HandleInput ( InputState input ) : void
input GameStateManagement.InputState
return void

OnBoxCollision() public method

public OnBoxCollision ( Entity collided, Rectangle intersect ) : void
collided Entity
intersect Microsoft.Xna.Framework.Rectangle
return void

OnPolyCollision() public method

public OnPolyCollision ( Entity collided ) : void
collided Entity
return void

Reset() public method

public Reset ( ) : void
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Update() public method

public Update ( GameTime gameTime, Map gameMap ) : void
gameTime Microsoft.Xna.Framework.GameTime
gameMap Map
return void

Property Details

Active public_oe property

public bool Active
return bool

HitBox public_oe property

public Rectangle,Microsoft.Xna.Framework HitBox
return Microsoft.Xna.Framework.Rectangle

HitPolyPoints public_oe property

public List HitPolyPoints
return List

Position public_oe property

public Vector2 Position
return Vector2

Rotation public_oe property

public float Rotation
return float

Speed public_oe property

public Vector2 Speed
return Vector2

SpriteSheet public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics SpriteSheet
return Microsoft.Xna.Framework.Graphics.Texture2D