C# Class Gruppe22.Client.Chat

Inheritance: TextOutput
Show file Open project: propra13-orga/gruppe22

Public Methods

Method Description
AddLine ( string text, object color = null ) : void
Chat ( Backend parent, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Content.ContentManager content, Rectangle displayRect, bool hasBorder = true, bool center = false ) : System
Draw ( GameTime gameTime ) : void
HandleEvent ( bool DownStream, Backend eventID ) : void
OnKeyDown ( Microsoft k ) : bool
OnMouseDown ( int button ) : bool
Update ( GameTime gameTime ) : void

Method Details

AddLine() public method

public AddLine ( string text, object color = null ) : void
text string
color object
return void

Chat() public method

public Chat ( Backend parent, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Content.ContentManager content, Rectangle displayRect, bool hasBorder = true, bool center = false ) : System
parent Backend
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
content Microsoft.Xna.Framework.Content.ContentManager
displayRect Microsoft.Xna.Framework.Rectangle
hasBorder bool
center bool
return System

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

HandleEvent() public method

public HandleEvent ( bool DownStream, Backend eventID ) : void
DownStream bool
eventID Backend
return void

OnKeyDown() public method

public OnKeyDown ( Microsoft k ) : bool
k Microsoft
return bool

OnMouseDown() public method

public OnMouseDown ( int button ) : bool
button int
return bool

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void