C# Class OpenEmpires.Entities.EntityBase

Inheritance: Drawable
显示文件 Open project: HandsomeMatt/OpenEmpires Class Usage Examples

Public Properties

Property Type Description
Health byte
Position Vector2f
WorldId short

Protected Properties

Property Type Description
entityToUse EntityBase

Public Methods

Method Description
Draw ( RenderTarget rt, RenderStates states ) : void
EntityBase ( ) : System
ParseCustomStream ( BinaryReader reader ) : void
ParseStream ( MemoryStream memory ) : void
ToStream ( ) : MemoryStream
Update ( ) : void

Protected Methods

Method Description
GetCustomData ( ) : MemoryStream

Method Details

Draw() public method

public Draw ( RenderTarget rt, RenderStates states ) : void
rt RenderTarget
states SFML.Graphics.RenderStates
return void

EntityBase() public method

public EntityBase ( ) : System
return System

GetCustomData() protected abstract method

protected abstract GetCustomData ( ) : MemoryStream
return System.IO.MemoryStream

ParseCustomStream() public abstract method

public abstract ParseCustomStream ( BinaryReader reader ) : void
reader System.IO.BinaryReader
return void

ParseStream() public method

public ParseStream ( MemoryStream memory ) : void
memory System.IO.MemoryStream
return void

ToStream() public method

public ToStream ( ) : MemoryStream
return System.IO.MemoryStream

Update() public abstract method

public abstract Update ( ) : void
return void

Property Details

Health public_oe property

public byte Health
return byte

Position public_oe property

public Vector2f Position
return Vector2f

WorldId public_oe property

public short WorldId
return short

entityToUse protected_oe property

protected EntityBase,OpenEmpires.Entities entityToUse
return EntityBase