C# Класс TapTitanXNA_JonryBorbe.Button

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Button ( Microsoft.Xna.Framework.Content.ContentManager content, string buttonName, Vector2 buttonPosition ) : System
Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : 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

Приватные методы

Метод Описание
LoadContent ( ) : void
hitImageAlpha ( float tx, float ty, Microsoft.Xna.Framework.Graphics.Texture2D texture, int x, int y ) : bool

Описание методов

Button() публичный Метод

public Button ( Microsoft.Xna.Framework.Content.ContentManager content, string buttonName, Vector2 buttonPosition ) : System
content Microsoft.Xna.Framework.Content.ContentManager
buttonName string
buttonPosition Vector2
Результат System

Draw() публичный Метод

public Draw ( GameTime gameTime, SpriteBatch spriteBatch ) : void
gameTime Microsoft.Xna.Framework.GameTime
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат void

Update() публичный Метод

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
Результат bool

hitImage() публичный Метод

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
Результат bool

hitImageAlpha() публичный Метод

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
Результат bool