C# Class MrGravity.Game_Objects.Static_Objects.Triggers.PopupTrigger

Trigger that draws text or an image
Inheritance: Trigger
Exibir arquivo Open project: DizWARE/Mr-Gravity Class Usage Examples

Public Methods

Method Description
Draw ( SpriteBatch canvas, GameTime gametime ) : void

Draws the popup when the player is in range

PopupTrigger ( Microsoft.Xna.Framework.Content.ContentManager content, EntityInfo entity ) : System.Collections.Generic

Creates a new popup trigger

RunTrigger ( List objects, Player player ) : void

Checks to see if the player is within range

Method Details

Draw() public method

Draws the popup when the player is in range
public Draw ( SpriteBatch canvas, GameTime gametime ) : void
canvas Microsoft.Xna.Framework.Graphics.SpriteBatch Canvas we draw to
gametime Microsoft.Xna.Framework.GameTime Current Gametime
return void

PopupTrigger() public method

Creates a new popup trigger
public PopupTrigger ( Microsoft.Xna.Framework.Content.ContentManager content, EntityInfo entity ) : System.Collections.Generic
content Microsoft.Xna.Framework.Content.ContentManager Content manager that loads our stuff
entity MrGravity.Import_Code.EntityInfo Information from xml about this entity
return System.Collections.Generic

RunTrigger() public method

Checks to see if the player is within range
public RunTrigger ( List objects, Player player ) : void
objects List Objects of the game
player MrGravity.Game_Objects.Physics_Objects.Player Player in the game
return void