C# 클래스 Sphere.Core.Entity

A representation of an entity.
상속: IDisposable
파일 보기 프로젝트 열기: Radnen/spherestudio

공개 메소드들

메소드 설명
Copy ( ) : Entity

Creates a perfect copy of this entity.

Dispose ( ) : void

Dispose and close this object.

Draw ( Graphics g, int tileWidth, int tileHeight, Point &offset, int zoom ) : void

Draws this Entity onto a System.Drawing.Graphics object.

Entity ( BinaryReader stream ) : System

Creates a new entity that was embedded next in the stream

Entity ( EntityType type ) : System

Creates a new Entity with the supplied type.

FigureOutName ( List others ) : void

Used along with a list of others, it makes a unique name for this entity.

GetSSImage ( string rootpath ) : Image

Get an image representation of this trigger / person

GetSpriteDirections ( string rootpath ) : string[]

Gets a list of sprite directions fgor this person object:

Save ( BinaryWriter binwrite ) : void

Saves the entity, embedding it into a file stream.

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void

메소드 상세

Copy() 공개 메소드

Creates a perfect copy of this entity.
public Copy ( ) : Entity
리턴 Entity

Dispose() 공개 메소드

Dispose and close this object.
public Dispose ( ) : void
리턴 void

Draw() 공개 메소드

Draws this Entity onto a System.Drawing.Graphics object.
public Draw ( Graphics g, int tileWidth, int tileHeight, Point &offset, int zoom ) : void
g System.Drawing.Graphics The System.Drawing.Graphics object to use.
tileWidth int The tile width for the map.
tileHeight int The tile height for the map.
offset Point The x/y offset to draw at.
zoom int The zoom factor of the map.
리턴 void

Entity() 공개 메소드

Creates a new entity that was embedded next in the stream
public Entity ( BinaryReader stream ) : System
stream System.IO.BinaryReader The System.IO.BinaryReader to use.
리턴 System

Entity() 공개 메소드

Creates a new Entity with the supplied type.
public Entity ( EntityType type ) : System
type EntityType The Entity.EntityType to use.
리턴 System

FigureOutName() 공개 메소드

Used along with a list of others, it makes a unique name for this entity.
public FigureOutName ( List others ) : void
others List A List of other types
리턴 void

GetSSImage() 공개 메소드

Get an image representation of this trigger / person
public GetSSImage ( string rootpath ) : Image
rootpath string The root path of the project to find the spriteset.
리턴 Image

GetSpriteDirections() 공개 메소드

Gets a list of sprite directions fgor this person object:
public GetSpriteDirections ( string rootpath ) : string[]
rootpath string The root path to find the spriteset with.
리턴 string[]

Save() 공개 메소드

Saves the entity, embedding it into a file stream.
public Save ( BinaryWriter binwrite ) : void
binwrite System.IO.BinaryWriter The System.IO.BinaryWriter to use.
리턴 void