C# Class Ultima.Map

Show file Open project: polserver/poltools Class Usage Examples

Public Properties

Property Type Description
Custom Map
Felucca Map
Ilshenar Map
Malas Map
TerMur Map
Tokuno Map
Trammel Map

Public Methods

Method Description
DefragStatics ( string path, Map map, int width, int height, bool remove ) : void
GetImage ( int x, int y, int width, int height ) : Bitmap

Returns Bitmap with Statics

GetImage ( int x, int y, int width, int height, bool statics ) : Bitmap

Returns Bitmap

GetImage ( int x, int y, int width, int height, Bitmap bmp ) : void

Draws in given Bitmap with Statics

GetImage ( int x, int y, int width, int height, Bitmap bmp, bool statics ) : void

Draws in given Bitmap

IsCached ( bool statics ) : bool
Map ( int fileIndex, int mapID, int width, int height ) : System
Map ( string path, int fileIndex, int mapID, int width, int height ) : System
PreloadRenderedBlock ( int x, int y, bool statics ) : void
Reload ( ) : void

Sets cache-vars to null

ReportInvalidMapIDs ( string reportfile ) : void
ReportInvisStatics ( string reportfile ) : void
ResetCache ( ) : void
RewriteMap ( string path, int map, int width, int height ) : void
StartUpSetDiff ( bool value ) : void

Private Methods

Method Description
GetRenderedBlock ( int x, int y, bool statics ) : short[]
RenderBlock ( int x, int y, bool drawStatics, bool diff ) : short[]

Method Details

DefragStatics() public static method

public static DefragStatics ( string path, Map map, int width, int height, bool remove ) : void
path string
map Map
width int
height int
remove bool
return void

GetImage() public method

Returns Bitmap with Statics
public GetImage ( int x, int y, int width, int height ) : Bitmap
x int 8x8 Block
y int 8x8 Block
width int 8x8 Block
height int 8x8 Block
return System.Drawing.Bitmap

GetImage() public method

Returns Bitmap
public GetImage ( int x, int y, int width, int height, bool statics ) : Bitmap
x int 8x8 Block
y int 8x8 Block
width int 8x8 Block
height int 8x8 Block
statics bool 8x8 Block
return System.Drawing.Bitmap

GetImage() public method

Draws in given Bitmap with Statics
public GetImage ( int x, int y, int width, int height, Bitmap bmp ) : void
x int 8x8 Block
y int 8x8 Block
width int 8x8 Block
height int 8x8 Block
bmp System.Drawing.Bitmap 8x8 Block
return void

GetImage() public method

Draws in given Bitmap
public GetImage ( int x, int y, int width, int height, Bitmap bmp, bool statics ) : void
x int 8x8 Block
y int 8x8 Block
width int 8x8 Block
height int 8x8 Block
bmp System.Drawing.Bitmap
statics bool
return void

IsCached() public method

public IsCached ( bool statics ) : bool
statics bool
return bool

Map() public method

public Map ( int fileIndex, int mapID, int width, int height ) : System
fileIndex int
mapID int
width int
height int
return System

Map() public method

public Map ( string path, int fileIndex, int mapID, int width, int height ) : System
path string
fileIndex int
mapID int
width int
height int
return System

PreloadRenderedBlock() public method

public PreloadRenderedBlock ( int x, int y, bool statics ) : void
x int
y int
statics bool
return void

Reload() public static method

Sets cache-vars to null
public static Reload ( ) : void
return void

ReportInvalidMapIDs() public method

public ReportInvalidMapIDs ( string reportfile ) : void
reportfile string
return void

ReportInvisStatics() public method

public ReportInvisStatics ( string reportfile ) : void
reportfile string
return void

ResetCache() public method

public ResetCache ( ) : void
return void

RewriteMap() public static method

public static RewriteMap ( string path, int map, int width, int height ) : void
path string
map int
width int
height int
return void

StartUpSetDiff() public static method

public static StartUpSetDiff ( bool value ) : void
value bool
return void

Property Details

Custom public static property

public static Map,Ultima Custom
return Map

Felucca public static property

public static Map,Ultima Felucca
return Map

Ilshenar public static property

public static Map,Ultima Ilshenar
return Map

Malas public static property

public static Map,Ultima Malas
return Map

TerMur public static property

public static Map,Ultima TerMur
return Map

Tokuno public static property

public static Map,Ultima Tokuno
return Map

Trammel public static property

public static Map,Ultima Trammel
return Map