C# Class AStarTest.MapControl

Inheritance: Dwarrowdelf.Client.TileControl.TileControlCore3D, INotifyPropertyChanged
Mostra file Open project: tomba/dwarrowdelf Class Usage Examples

Public Methods

Method Description
GetPathReverse ( AStarNode lastNode ) : IEnumerable
MapControl ( ) : System
RunTest ( int test ) : void
ScreenPointToMapLocation ( Point p ) : IntVector3
ScreenTileToMapLocation ( IntVector2 st ) : IntVector3
Signal ( ) : void

Protected Methods

Method Description
OnInitialized ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnRenderTiles ( DrawingContext drawingContext, Size renderSize, TileRenderContext ctx ) : void

Private Methods

Method Description
AStarDebugCallback ( AStarNode>.IDictionary nodes ) : void
ClearMap ( ) : void
DoAStar ( IntVector3 src, IntVector3 dst ) : void
MapControl_GridSizeChanged ( object ob, IntSize2 gridSize ) : void
MapControl_ScreenCenterPosChanged ( object arg1, DoubleVector3 arg2, IntVector3 arg3 ) : void
Notify ( string propertyName ) : void
OnDragAborted ( ) : void
OnDragEnded ( Point pos ) : void
OnDragStarted ( Point pos ) : void
OnDragging ( Point pos ) : void
OnMouseClicked ( object sender, MouseButtonEventArgs e ) : void
UpdateCurrentTileInfo ( Point pos ) : void
UpdateTile ( RenderTileData &tile, IntVector3 ml ) : void

Method Details

GetPathReverse() public method

public GetPathReverse ( AStarNode lastNode ) : IEnumerable
lastNode Dwarrowdelf.AStarNode
return IEnumerable

MapControl() public method

public MapControl ( ) : System
return System

OnInitialized() protected method

protected OnInitialized ( EventArgs e ) : void
e EventArgs
return void

OnMouseMove() protected method

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

OnRenderTiles() protected method

protected OnRenderTiles ( DrawingContext drawingContext, Size renderSize, TileRenderContext ctx ) : void
drawingContext DrawingContext
renderSize Size
ctx TileRenderContext
return void

RunTest() public method

public RunTest ( int test ) : void
test int
return void

ScreenPointToMapLocation() public method

public ScreenPointToMapLocation ( Point p ) : IntVector3
p Point
return IntVector3

ScreenTileToMapLocation() public method

public ScreenTileToMapLocation ( IntVector2 st ) : IntVector3
st IntVector2
return IntVector3

Signal() public method

public Signal ( ) : void
return void