C# Class MultiEditor.MultiEditorComponentList

Show file Open project: polserver/poltools Class Usage Examples

Public Properties

Property Type Description
DoubleSurfaceCount int
WalkableCount int

Public Methods

Method Description
AddToSDKComponentList ( int id ) : void

Export to given multi id

CalcDoubleSurface ( ) : void
CalcSolver ( ) : void
CalcSolver ( int x, int y ) : void
CalcWalkable ( ) : void
ConvertToSDK ( ) : MultiComponentList
GetImage ( Graphics gfx, int xoff, int yoff, int maxheight, Point mouseLoc, bool drawFloor, bool forcerefresh ) : void

Gets Bitmap of Multi and sets HoverTile

GetSelected ( Point mouseLoc, int maxheight, bool drawFloor ) : MultiTile

Gets MultiTile from given Pixel Location

GetXYArray ( int x, int y ) : List
MultiEditorComponentList ( MultiComponentList list, MultiEditor parent ) : System

Create a ComponentList from UltimaSDK

MultiEditorComponentList ( int width, int height, MultiEditor parent ) : System

Create a blank ComponentList

Resize ( int width, int height ) : void

Resizes Multi size

SetFloorZ ( int Z ) : void
TileAdd ( int x, int y, int z, ushort id ) : void

Adds an MultiTile to specific location

TileMove ( MultiTile tile, int newx, int newy ) : void

Moves given MultiTile

TileRemove ( MultiTile tile ) : void

Removes specific MultiTile

TileZMod ( MultiTile tile, int modz ) : void

Alters Z level for given MultiTile

TileZSet ( MultiTile tile, int setz ) : void

Sets Z value of given MultiTile

Undo ( int index ) : void
UndoClear ( ) : void

Private Methods

Method Description
AddToUndoList ( string Action ) : void
RecalcMinMax ( ) : void

Recalcs Bitmap size

RecalcMinMax ( MultiTile tile ) : void

Method Details

AddToSDKComponentList() public method

Export to given multi id
public AddToSDKComponentList ( int id ) : void
id int
return void

CalcDoubleSurface() public method

public CalcDoubleSurface ( ) : void
return void

CalcSolver() public method

public CalcSolver ( ) : void
return void

CalcSolver() public method

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

CalcWalkable() public method

public CalcWalkable ( ) : void
return void

ConvertToSDK() public method

public ConvertToSDK ( ) : MultiComponentList
return Ultima.MultiComponentList

GetImage() public method

Gets Bitmap of Multi and sets HoverTile
public GetImage ( Graphics gfx, int xoff, int yoff, int maxheight, Point mouseLoc, bool drawFloor, bool forcerefresh ) : void
gfx System.Drawing.Graphics
xoff int
yoff int
maxheight int
mouseLoc Point
drawFloor bool
forcerefresh bool
return void

GetSelected() public method

Gets MultiTile from given Pixel Location
public GetSelected ( Point mouseLoc, int maxheight, bool drawFloor ) : MultiTile
mouseLoc Point
maxheight int
drawFloor bool
return MultiTile

GetXYArray() public method

public GetXYArray ( int x, int y ) : List
x int
y int
return List

MultiEditorComponentList() public method

Create a ComponentList from UltimaSDK
public MultiEditorComponentList ( MultiComponentList list, MultiEditor parent ) : System
list Ultima.MultiComponentList
parent MultiEditor
return System

MultiEditorComponentList() public method

Create a blank ComponentList
public MultiEditorComponentList ( int width, int height, MultiEditor parent ) : System
width int
height int
parent MultiEditor
return System

Resize() public method

Resizes Multi size
public Resize ( int width, int height ) : void
width int
height int
return void

SetFloorZ() public method

public SetFloorZ ( int Z ) : void
Z int
return void

TileAdd() public method

Adds an MultiTile to specific location
public TileAdd ( int x, int y, int z, ushort id ) : void
x int
y int
z int
id ushort
return void

TileMove() public method

Moves given MultiTile
public TileMove ( MultiTile tile, int newx, int newy ) : void
tile MultiTile
newx int
newy int
return void

TileRemove() public method

Removes specific MultiTile
public TileRemove ( MultiTile tile ) : void
tile MultiTile
return void

TileZMod() public method

Alters Z level for given MultiTile
public TileZMod ( MultiTile tile, int modz ) : void
tile MultiTile
modz int
return void

TileZSet() public method

Sets Z value of given MultiTile
public TileZSet ( MultiTile tile, int setz ) : void
tile MultiTile
setz int
return void

Undo() public method

public Undo ( int index ) : void
index int
return void

UndoClear() public method

public UndoClear ( ) : void
return void

Property Details

DoubleSurfaceCount public property

public int DoubleSurfaceCount
return int

WalkableCount public property

public int WalkableCount
return int