C# Class Dabrorius.MonoPunk.Entity

Show file Open project: dabrorius/MonoPunk

Public Properties

Property Type Description
Active System.Boolean
Collidable System.Boolean
OriginX int
OriginY int
Position Vector2
Size Vector2
Visible System.Boolean
renderTarget Microsoft.Xna.Framework.Graphics.SpriteBatch

Public Methods

Method Description
Added ( ) : void
Collide ( String type, float x, float y ) : Entity
Entity ( float x, float y, Graphic graphic = null ) : System
Removed ( ) : void
Render ( ) : void
Update ( ) : void
setHitbox ( int width, int height, int originX, int originY ) : void

Method Details

Added() public method

public Added ( ) : void
return void

Collide() public method

public Collide ( String type, float x, float y ) : Entity
type String
x float
y float
return Entity

Entity() public method

public Entity ( float x, float y, Graphic graphic = null ) : System
x float
y float
graphic Graphic
return System

Removed() public method

public Removed ( ) : void
return void

Render() public method

public Render ( ) : void
return void

Update() public method

public Update ( ) : void
return void

setHitbox() public method

public setHitbox ( int width, int height, int originX, int originY ) : void
width int
height int
originX int
originY int
return void

Property Details

Active public property

public Boolean,System Active
return System.Boolean

Collidable public property

public Boolean,System Collidable
return System.Boolean

OriginX public property

public int OriginX
return int

OriginY public property

public int OriginY
return int

Position public property

public Vector2 Position
return Vector2

Size public property

public Vector2 Size
return Vector2

Visible public property

public Boolean,System Visible
return System.Boolean

renderTarget public property

public SpriteBatch,Microsoft.Xna.Framework.Graphics renderTarget
return Microsoft.Xna.Framework.Graphics.SpriteBatch