C# 클래스 Gruppe22.Client.ActorView

상속: TileSet
파일 보기 프로젝트 열기: propra13-orga/gruppe22 1 사용 예제들

공개 메소드들

메소드 설명
ActorView ( ) : System
ActorView ( Camera camera, Backend parent, int id, Microsoft.Xna.Framework.Content.ContentManager content, Backend position, Backend actor, string filename = "", int speed = 5, bool alive = true, int width = 96, int height = 96 ) : System

Add ( Backend activity, Backend direction, string filename, Backend startPos, int cols = 1, int rows = 1, Backend offset = null, Backend crop = null, bool vertical = false ) : void

Add animation for certain activity from a file

Animate ( bool hasMoved ) : void
EndMoveAndPlay ( Backend activity, bool locked = false ) : void
Kill ( ) : void

Sets an actor to "dead" state and displays final frame of animation

Load ( string filename = "bla.xml" ) : void

Load (cannot use serializer at this level!)

PlayNowOrAfterMove ( Backend activity, bool locked = false ) : void
ReadXml ( System reader ) : void

Load object from XML-file

Save ( string filename = "bla.xml" ) : void

Save (merely a shortcut to the serializer

Update ( GameTime gametime ) : void

WriteXml ( System writer ) : void

Dump object to XML-file

메소드 상세

ActorView() 공개 메소드

public ActorView ( ) : System
리턴 System

ActorView() 공개 메소드

public ActorView ( Camera camera, Backend parent, int id, Microsoft.Xna.Framework.Content.ContentManager content, Backend position, Backend actor, string filename = "", int speed = 5, bool alive = true, int width = 96, int height = 96 ) : System
camera Camera
parent Backend
id int
content Microsoft.Xna.Framework.Content.ContentManager
position Backend
actor Backend
filename string
speed int
alive bool
width int
height int
리턴 System

Add() 공개 메소드

Add animation for certain activity from a file
public Add ( Backend activity, Backend direction, string filename, Backend startPos, int cols = 1, int rows = 1, Backend offset = null, Backend crop = null, bool vertical = false ) : void
activity Backend
direction Backend
filename string
startPos Backend
cols int
rows int
offset Backend
crop Backend
vertical bool
리턴 void

Animate() 공개 메소드

public Animate ( bool hasMoved ) : void
hasMoved bool
리턴 void

EndMoveAndPlay() 공개 메소드

public EndMoveAndPlay ( Backend activity, bool locked = false ) : void
activity Backend
locked bool
리턴 void

Kill() 공개 메소드

Sets an actor to "dead" state and displays final frame of animation
public Kill ( ) : void
리턴 void

Load() 공개 메소드

Load (cannot use serializer at this level!)
public Load ( string filename = "bla.xml" ) : void
filename string
리턴 void

PlayNowOrAfterMove() 공개 메소드

public PlayNowOrAfterMove ( Backend activity, bool locked = false ) : void
activity Backend
locked bool
리턴 void

ReadXml() 공개 메소드

Load object from XML-file
public ReadXml ( System reader ) : void
reader System Load object from XML-stream
리턴 void

Save() 공개 메소드

Save (merely a shortcut to the serializer
public Save ( string filename = "bla.xml" ) : void
filename string
리턴 void

Update() 공개 메소드

public Update ( GameTime gametime ) : void
gametime Microsoft.Xna.Framework.GameTime
리턴 void

WriteXml() 공개 메소드

Dump object to XML-file
public WriteXml ( System writer ) : void
writer System Write object to XML-stream
리턴 void