C# Class spaceconquest.GlobalChatClientGUI

显示文件 Open project: cclay/spaceconquest

Public Methods

Method Description
Draw ( SpriteBatch s ) : void
GetHeight ( ) : int
GetLocation ( ) : Vector2
GetWidth ( ) : int
GlobalChatClientGUI ( Vector2 position, Vector2 containerSize, Vector2 chatBoxSize, int refreshTimeInMilliseconds, SpriteFont chatFont, Color containerColor, Color chatBoxColor, List textureList ) : System
HasFocus ( ) : bool
MouseIsOverlapping ( Microsoft.Xna.Framework.Input.MouseState m ) : bool
ProcessKeyInput ( KeyboardState k, String playerName ) : void
SetHeight ( int newHeight ) : void
SetLocation ( Vector2 newLocation ) : void
SetWidth ( int newWidth ) : void
UpdateChat ( ) : void
setFocus ( System.Boolean b ) : void

Private Methods

Method Description
Draw ( SpriteBatch s, SpriteFont f, List textureList ) : void
MessageParser ( string name, string message ) : String

Method Details

Draw() public method

public Draw ( SpriteBatch s ) : void
s Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

GetHeight() public method

public GetHeight ( ) : int
return int

GetLocation() public method

public GetLocation ( ) : Vector2
return Vector2

GetWidth() public method

public GetWidth ( ) : int
return int

GlobalChatClientGUI() public method

public GlobalChatClientGUI ( Vector2 position, Vector2 containerSize, Vector2 chatBoxSize, int refreshTimeInMilliseconds, SpriteFont chatFont, Color containerColor, Color chatBoxColor, List textureList ) : System
position Vector2
containerSize Vector2
chatBoxSize Vector2
refreshTimeInMilliseconds int
chatFont Microsoft.Xna.Framework.Graphics.SpriteFont
containerColor Color
chatBoxColor Color
textureList List
return System

HasFocus() public method

public HasFocus ( ) : bool
return bool

MouseIsOverlapping() public method

public MouseIsOverlapping ( Microsoft.Xna.Framework.Input.MouseState m ) : bool
m Microsoft.Xna.Framework.Input.MouseState
return bool

ProcessKeyInput() public method

public ProcessKeyInput ( KeyboardState k, String playerName ) : void
k Microsoft.Xna.Framework.Input.KeyboardState
playerName String
return void

SetHeight() public method

public SetHeight ( int newHeight ) : void
newHeight int
return void

SetLocation() public method

public SetLocation ( Vector2 newLocation ) : void
newLocation Vector2
return void

SetWidth() public method

public SetWidth ( int newWidth ) : void
newWidth int
return void

UpdateChat() public method

public UpdateChat ( ) : void
return void

setFocus() public method

public setFocus ( System.Boolean b ) : void
b System.Boolean
return void