C# Class WindowsGame1.Sprite

Afficher le fichier Open project: csce3513/Team18 Class Usage Examples

Méthodes publiques

Свойство Type Description
assetName string
sourceRect Rectangle
timer float

Protected Properties

Свойство Type Description
mPos Vector2
tex Texture2D

Méthodes publiques

Méthode Description
Draw ( SpriteBatch theSpriteBatch ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, string theAssetName ) : void
Sprite ( ) : System
Sprite ( int ID ) : System
Update ( GameTime theGameTime, Vector2 theSpeed, Vector2 theDirection ) : void
getPos ( ) : Vector2
getTex ( ) : Texture2D
updatePos ( Vector2 newPos ) : void

Private Methods

Méthode Description
Update ( GameTime gameTime ) : void

Method Details

Draw() public méthode

public Draw ( SpriteBatch theSpriteBatch ) : void
theSpriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

LoadContent() public méthode

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager theContentManager, string theAssetName ) : void
theContentManager Microsoft.Xna.Framework.Content.ContentManager
theAssetName string
Résultat void

Sprite() public méthode

public Sprite ( ) : System
Résultat System

Sprite() public méthode

public Sprite ( int ID ) : System
ID int
Résultat System

Update() public méthode

public Update ( GameTime theGameTime, Vector2 theSpeed, Vector2 theDirection ) : void
theGameTime GameTime
theSpeed Vector2
theDirection Vector2
Résultat void

getPos() public méthode

public getPos ( ) : Vector2
Résultat Vector2

getTex() public méthode

public getTex ( ) : Texture2D
Résultat Texture2D

updatePos() public méthode

public updatePos ( Vector2 newPos ) : void
newPos Vector2
Résultat void

Property Details

assetName public_oe property

public string assetName
Résultat string

mPos protected_oe property

protected Vector2 mPos
Résultat Vector2

sourceRect public_oe property

public Rectangle sourceRect
Résultat Rectangle

tex protected_oe property

protected Texture2D tex
Résultat Texture2D

timer public_oe property

public float timer
Résultat float