C# Class PantheonPrototype.TextBubble

Mostrar archivo Open project: Bacon41/PantheonPrototype Class Usage Examples

Protected Properties

Property Type Description
bubbleImage Microsoft.Xna.Framework.Graphics.Texture2D
entity Entity
position Vector2
readyForDeletion bool
text string

Public Methods

Method Description
Draw ( SpriteBatch context, SpriteFont textFont, Microsoft.Xna.Framework.Graphics.Texture2D textbubbleImage ) : void

Draws the text bubble on the screen at its given position.

Load ( Microsoft.Xna.Framework.Content.ContentManager content, string imageName ) : void

Loads the image for use as a textbubble.

TextBubble ( Entity entity, string text ) : System

IT CREATES A TEXT BUBBLE. WOAH. Also anchors it to a character. NOTE: At the moment this will just hook it to the character at that current point, it will not follow, while that could be possible in the future.

TextBubble ( Entity entity, string text, Microsoft.Xna.Framework.Content.ContentManager content, string imageName ) : System

IT CREATES A TEXT BUBBLE. WOAH. Also anchors it to a character. NOTE: At the moment this will just hook it to the character at that current point, it will not follow, while that could be possible in the future.

TextBubble ( Entity entity, string text, Microsoft.Xna.Framework.Graphics.Texture2D image ) : System
TextBubble ( Vector2 position, string text ) : System

IT CREATES A TEXT BUBBLE. WOAH.

TextBubble ( Vector2 position, string text, Microsoft.Xna.Framework.Graphics.Texture2D image ) : System

IT CREATES A TEXT BUBBLE. WOAH.

Update ( GameTime gameTime, Pantheon gameReference ) : void

This updates the bubble which mostly is sure to set up the structure defining the ending time.

Method Details

Draw() public method

Draws the text bubble on the screen at its given position.
public Draw ( SpriteBatch context, SpriteFont textFont, Microsoft.Xna.Framework.Graphics.Texture2D textbubbleImage ) : void
context Microsoft.Xna.Framework.Graphics.SpriteBatch The SpriteBatch the bubble should be drawn on.
textFont Microsoft.Xna.Framework.Graphics.SpriteFont The font used to draw the text bubbles.
textbubbleImage Microsoft.Xna.Framework.Graphics.Texture2D
return void

Load() public method

Loads the image for use as a textbubble.
public Load ( Microsoft.Xna.Framework.Content.ContentManager content, string imageName ) : void
content Microsoft.Xna.Framework.Content.ContentManager The content manager to load the image from.
imageName string The name of the image to load.
return void

TextBubble() public method

IT CREATES A TEXT BUBBLE. WOAH. Also anchors it to a character. NOTE: At the moment this will just hook it to the character at that current point, it will not follow, while that could be possible in the future.
public TextBubble ( Entity entity, string text ) : System
entity Entity
text string This text to say.
return System

TextBubble() public method

IT CREATES A TEXT BUBBLE. WOAH. Also anchors it to a character. NOTE: At the moment this will just hook it to the character at that current point, it will not follow, while that could be possible in the future.
public TextBubble ( Entity entity, string text, Microsoft.Xna.Framework.Content.ContentManager content, string imageName ) : System
entity Entity
text string This text to say.
content Microsoft.Xna.Framework.Content.ContentManager
imageName string
return System

TextBubble() public method

public TextBubble ( Entity entity, string text, Microsoft.Xna.Framework.Graphics.Texture2D image ) : System
entity Entity
text string
image Microsoft.Xna.Framework.Graphics.Texture2D
return System

TextBubble() public method

IT CREATES A TEXT BUBBLE. WOAH.
public TextBubble ( Vector2 position, string text ) : System
position Vector2 The location of the text bubble anchor.
text string This text to say.
return System

TextBubble() public method

IT CREATES A TEXT BUBBLE. WOAH.
public TextBubble ( Vector2 position, string text, Microsoft.Xna.Framework.Graphics.Texture2D image ) : System
position Vector2 The location of the text bubble anchor.
text string This text to say.
image Microsoft.Xna.Framework.Graphics.Texture2D
return System

Update() public method

This updates the bubble which mostly is sure to set up the structure defining the ending time.
public Update ( GameTime gameTime, Pantheon gameReference ) : void
gameTime Microsoft.Xna.Framework.GameTime
gameReference Pantheon
return void

Property Details

bubbleImage protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics bubbleImage
return Microsoft.Xna.Framework.Graphics.Texture2D

entity protected_oe property

protected Entity entity
return Entity

position protected_oe property

protected Vector2 position
return Vector2

readyForDeletion protected_oe property

protected bool readyForDeletion
return bool

text protected_oe property

protected string text
return string