C# Class MapView.RmpViewForm.MapPanel

Inheritance: System.Windows.Forms.Panel
Exibir arquivo Open project: pmprog/OpenXCOM.Tools

Protected Properties

Property Type Description
brushes SolidBrush>.Dictionary
clickPoint Point
hWidth int
map XCom.XCMapFile
origin Point
pens Pen>.Dictionary

Public Methods

Method Description
GetTile ( int x, int y ) : XCMapTile

Get the tile contained at (x,y) in local screen coordinates

GetTileCoordinates ( int x, int y ) : Point
MapPanel ( ) : System

Protected Methods

Method Description
OnMouseDown ( MouseEventArgs e ) : void
OnResize ( EventArgs e ) : void

Private Methods

Method Description
convertCoordsDiamond ( int xp, int yp ) : Point

Method Details

GetTile() public method

Get the tile contained at (x,y) in local screen coordinates
public GetTile ( int x, int y ) : XCMapTile
x int
y int
return XCom.XCMapTile

GetTileCoordinates() public method

public GetTileCoordinates ( int x, int y ) : Point
x int
y int
return Point

MapPanel() public method

public MapPanel ( ) : System
return System

OnMouseDown() protected method

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnResize() protected method

protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void

Property Details

brushes protected_oe property

protected Dictionary brushes
return SolidBrush>.Dictionary

clickPoint protected_oe property

protected Point clickPoint
return Point

hWidth protected_oe property

protected int hWidth
return int

map protected_oe property

protected XCMapFile,XCom map
return XCom.XCMapFile

origin protected_oe property

protected Point origin
return Point

pens protected_oe property

protected Dictionary pens
return Pen>.Dictionary