C# Class MoodSwingCoreComponents.MS2DClickable

MS2DClickable is an MS2DCollidable that can be clicked (collides with) the Mouse
Inheritance: MS2DCollidable
Datei anzeigen Open project: verngutz/MoodSwing

Public Methods

Method Description
CollidesWithMouse ( ) : bool

Check whether the Mouse is currently over this MS2DClickable

MS2DClickable ( Rectangle boundingRectangle, Shape shape, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
MS2DClickable ( Vector2 position, Vector2 size, Shape shape, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System

Method Details

CollidesWithMouse() public method

Check whether the Mouse is currently over this MS2DClickable
public CollidesWithMouse ( ) : bool
return bool

MS2DClickable() public method

public MS2DClickable ( Rectangle boundingRectangle, Shape shape, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
boundingRectangle Microsoft.Xna.Framework.Rectangle
shape Shape
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
game Microsoft.Xna.Framework.Game
return System

MS2DClickable() public method

public MS2DClickable ( Vector2 position, Vector2 size, Shape shape, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
position Vector2
size Vector2
shape Shape
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
game Microsoft.Xna.Framework.Game
return System