C# Class Gruppe22.Client.ActorView

Inheritance: TileSet
Datei anzeigen Open project: propra13-orga/gruppe22 Class Usage Examples

Public Methods

Method Description
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

Method Details

ActorView() public method

public ActorView ( ) : System
return System

ActorView() public method

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
return System

Add() public method

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
return void

Animate() public method

public Animate ( bool hasMoved ) : void
hasMoved bool
return void

EndMoveAndPlay() public method

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

Kill() public method

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

Load() public method

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

PlayNowOrAfterMove() public method

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

ReadXml() public method

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

Save() public method

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

Update() public method

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

WriteXml() public method

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