C# Class Divine_Right.InterfaceComponents.Components.ViewTileTextComponent

A component which shows some text describing a tile
Inheritance: IGameInterfaceComponent
ファイルを表示 Open project: Haedrian/Divine-Right

Protected Properties

Property Type Description
componentRectangle Microsoft.Xna.Framework.Rectangle
locationX int
locationY int
text string
visible bool

Public Methods

Method Description
HandleKeyboard ( Microsoft keyboard, DRObjects &actionType, object &args, DRObjects &coord, bool &destroy ) : bool
HandleMouseOver ( int x, int y ) : void
IsModal ( ) : bool
PerformDrag ( int x, int y ) : void
ViewTileTextComponent ( int x, int y, string displayText ) : System

Creates a tile text component displaying particular text

Protected Methods

Method Description
IGameInterfaceComponent ( Microsoft.Xna.Framework.Content.ContentManager content, SpriteBatch batch ) : void

Private Methods

Method Description
IGameInterfaceComponent ( ) : Rectangle
IGameInterfaceComponent ( int x, int y, MouseActionEnum mouse, DRObjects &actionType, InternalActionEnum &internalActionType, object &args, MapItem &itm, DRObjects &coord, bool &destroy ) : bool

Method Details

HandleKeyboard() public method

public HandleKeyboard ( Microsoft keyboard, DRObjects &actionType, object &args, DRObjects &coord, bool &destroy ) : bool
keyboard Microsoft
actionType DRObjects
args object
coord DRObjects
destroy bool
return bool

HandleMouseOver() public method

public HandleMouseOver ( int x, int y ) : void
x int
y int
return void

IGameInterfaceComponent() protected method

protected IGameInterfaceComponent ( Microsoft.Xna.Framework.Content.ContentManager content, SpriteBatch batch ) : void
content Microsoft.Xna.Framework.Content.ContentManager
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

IsModal() public method

public IsModal ( ) : bool
return bool

PerformDrag() public method

public PerformDrag ( int x, int y ) : void
x int
y int
return void

ViewTileTextComponent() public method

Creates a tile text component displaying particular text
public ViewTileTextComponent ( int x, int y, string displayText ) : System
x int
y int
displayText string
return System

Property Details

componentRectangle protected_oe property

protected Rectangle,Microsoft.Xna.Framework componentRectangle
return Microsoft.Xna.Framework.Rectangle

locationX protected_oe property

protected int locationX
return int

locationY protected_oe property

protected int locationY
return int

text protected_oe property

protected string text
return string

visible protected_oe property

protected bool visible
return bool