C# 클래스 MrGravity.Game_Objects.Static_Objects.Triggers.PopupTrigger

Trigger that draws text or an image
상속: Trigger
파일 보기 프로젝트 열기: DizWARE/Mr-Gravity 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

Draw() 공개 메소드

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
리턴 void

PopupTrigger() 공개 메소드

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
리턴 System.Collections.Generic

RunTrigger() 공개 메소드

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
리턴 void