C# Class AStarTest.MapControl

Inheritance: Dwarrowdelf.Client.TileControl.TileControlCore3D, INotifyPropertyChanged
Afficher le fichier Open project: tomba/dwarrowdelf Class Usage Examples

Méthodes publiques

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

Méthodes protégées

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

Private Methods

Méthode 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 méthode

public GetPathReverse ( AStarNode lastNode ) : IEnumerable
lastNode Dwarrowdelf.AStarNode
Résultat IEnumerable

MapControl() public méthode

public MapControl ( ) : System
Résultat System

OnInitialized() protected méthode

protected OnInitialized ( EventArgs e ) : void
e EventArgs
Résultat void

OnMouseMove() protected méthode

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnRenderTiles() protected méthode

protected OnRenderTiles ( DrawingContext drawingContext, Size renderSize, TileRenderContext ctx ) : void
drawingContext DrawingContext
renderSize Size
ctx TileRenderContext
Résultat void

RunTest() public méthode

public RunTest ( int test ) : void
test int
Résultat void

ScreenPointToMapLocation() public méthode

public ScreenPointToMapLocation ( Point p ) : IntVector3
p Point
Résultat IntVector3

ScreenTileToMapLocation() public méthode

public ScreenTileToMapLocation ( IntVector2 st ) : IntVector3
st IntVector2
Résultat IntVector3

Signal() public méthode

public Signal ( ) : void
Résultat void