C# Class Gruppe22.Client.ActorView

Inheritance: TileSet
Afficher le fichier Open project: propra13-orga/gruppe22 Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public ActorView ( ) : System
Résultat System

ActorView() public méthode

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
Résultat System

Add() public méthode

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
Résultat void

Animate() public méthode

public Animate ( bool hasMoved ) : void
hasMoved bool
Résultat void

EndMoveAndPlay() public méthode

public EndMoveAndPlay ( Backend activity, bool locked = false ) : void
activity Backend
locked bool
Résultat void

Kill() public méthode

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

Load() public méthode

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

PlayNowOrAfterMove() public méthode

public PlayNowOrAfterMove ( Backend activity, bool locked = false ) : void
activity Backend
locked bool
Résultat void

ReadXml() public méthode

Load object from XML-file
public ReadXml ( System reader ) : void
reader System Load object from XML-stream
Résultat void

Save() public méthode

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

Update() public méthode

public Update ( GameTime gametime ) : void
gametime Microsoft.Xna.Framework.GameTime
Résultat void

WriteXml() public méthode

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