C# Class Starwar.Sprites.Sprite

Inheritance: IVisualElement
Afficher le fichier Open project: daxnet/Starwar

Méthodes publiques

Méthode Description
CheckOutOfViewport ( Viewport viewport ) : bool
CollidesWith ( Sprite other ) : bool
CollidesWith ( Sprite other, bool calcPerPixel ) : bool
Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
Sprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
Sprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position ) : System
Update ( GameTime gameTime ) : void

Private Methods

Méthode Description
PerPixelCollision ( Sprite a, Sprite b ) : bool

Method Details

CheckOutOfViewport() public méthode

public CheckOutOfViewport ( Viewport viewport ) : bool
viewport Microsoft.Xna.Framework.Graphics.Viewport
Résultat bool

CollidesWith() public méthode

public CollidesWith ( Sprite other ) : bool
other Sprite
Résultat bool

CollidesWith() public méthode

public CollidesWith ( Sprite other, bool calcPerPixel ) : bool
other Sprite
calcPerPixel bool
Résultat bool

Draw() public méthode

public Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

Sprite() public méthode

public Sprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
Résultat System

Sprite() public méthode

public Sprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Vector2
Résultat System

Update() public méthode

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