C# Class TapTitanXNA_TheoMiguel.Button

Afficher le fichier Open project: WINPROG20152016/Miguel_TapTitanXNA Class Usage Examples

Méthodes publiques

Méthode Description
Button ( Microsoft.Xna.Framework.Content.ContentManager content, string buttonName, Vector2 buttonPosition ) : System
Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
LoadContent ( ) : void
Update ( GameTime gameTime, int mx, int my, bool mpressed, bool prev_mpressed ) : bool
hitImage ( float tx, float ty, Microsoft.Xna.Framework.Graphics.Texture2D texture, int x, int y ) : bool
hitImageAlpha ( Rectangle rect, Microsoft.Xna.Framework.Graphics.Texture2D texture, int x, int y ) : bool
hitImageAlpha ( float tx, float ty, Microsoft.Xna.Framework.Graphics.Texture2D texture, int x, int y ) : bool

Method Details

Button() public méthode

public Button ( Microsoft.Xna.Framework.Content.ContentManager content, string buttonName, Vector2 buttonPosition ) : System
content Microsoft.Xna.Framework.Content.ContentManager
buttonName string
buttonPosition Vector2
Résultat System

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

LoadContent() public méthode

public LoadContent ( ) : void
Résultat void

Update() public méthode

public Update ( GameTime gameTime, int mx, int my, bool mpressed, bool prev_mpressed ) : bool
gameTime Microsoft.Xna.Framework.GameTime
mx int
my int
mpressed bool
prev_mpressed bool
Résultat bool

hitImage() public méthode

public hitImage ( float tx, float ty, Microsoft.Xna.Framework.Graphics.Texture2D texture, int x, int y ) : bool
tx float
ty float
texture Microsoft.Xna.Framework.Graphics.Texture2D
x int
y int
Résultat bool

hitImageAlpha() public méthode

public hitImageAlpha ( Rectangle rect, Microsoft.Xna.Framework.Graphics.Texture2D texture, int x, int y ) : bool
rect Microsoft.Xna.Framework.Rectangle
texture Microsoft.Xna.Framework.Graphics.Texture2D
x int
y int
Résultat bool

hitImageAlpha() public méthode

public hitImageAlpha ( float tx, float ty, Microsoft.Xna.Framework.Graphics.Texture2D texture, int x, int y ) : bool
tx float
ty float
texture Microsoft.Xna.Framework.Graphics.Texture2D
x int
y int
Résultat bool