CAST II Game Engine |
|||||||||||||||
![]() |
DESCRIPTION | ![]() |
FEATURES | ![]() |
SCREENSHOTS | ![]() |
FORUMS | ![]() |
DOCUMENTATION | ![]() |
DOWNLOADS | ![]() |
CONTACTS | ![]() |
|
type TMap = class(TItem)
TItem > TBaseItem| Name | Description | |
|---|---|---|
![]() | FCellHeightScale | |
![]() | FCellWidthScale | |
![]() | FDepthScale | |
![]() | FElementSize | |
![]() | FHeight | |
![]() | FMaxHeight | |
![]() | FWidth |
![]() | constructor Create(AManager: TItemsManager); override; |
![]() | procedure AddProperties(const Result: Props.TProperties); override; |
![]() | procedure AddRectHeights(const ARect: TRect; ABuf: Pointer; Scale: Single); virtual; |
![]() | procedure CalcCoeffs(xo, zo: Single; out k11, k12, k21, k22: Single); |
![]() | function GetCellHeight(XI, ZI: Integer): Single; |
![]() | function GetCellNormal(XI,ZI :Integer): TVector3s; virtual; |
![]() | function GetData: Pointer; virtual; abstract; |
![]() | function GetHeight(X, Z: Single): Single; virtual; |
![]() | function GetNormal(X,Z: Single): TVector3s; virtual; |
![]() | function GetRawHeight(XI, ZI: Integer): Integer; virtual; abstract; |
![]() | class function IsAbstract: Boolean; override; |
![]() | function IsReady: Boolean; virtual; |
![]() | procedure ObtainCell(X, Z: Single; out CellX, CellZ: Integer); |
![]() | procedure ObtainRectHeights(const ARect: TRect; ABuf: Pointer); virtual; |
![]() | procedure SetCellHeightScale(const Value: Single); virtual; |
![]() | procedure SetCellWidthScale(const Value: Single); virtual; |
![]() | procedure SetDimensions(AWidth, AHeight: Integer); virtual; |
![]() | procedure SetHeightScale(const Value: Single); virtual; |
![]() | procedure SetProperties(Properties: Props.TProperties); override; |
![]() | procedure SetRawHeight(XI, ZI: Integer; const Value: Integer); virtual; abstract; |
![]() | procedure SwapRectHeights(const ARect: TRect; ABuf: Pointer); virtual; |
![]() | function TraceRay(const Origin, Dir: TVector3s; out Point: TVector3s): Boolean; virtual; |
![]() | constructor Create(AManager: TItemsManager); override; |
![]() | procedure AddProperties(const Result: Props.TProperties); override; |
![]() | procedure AddRectHeights(const ARect: TRect; ABuf: Pointer; Scale: Single); virtual; |
Adds a rectangular area of the map and the contents of the specified buffer contaning values of type Single
![]() | procedure CalcCoeffs(xo, zo: Single; out k11, k12, k21, k22: Single); |
Calculate coefficients for interpolation between values given at a rectangle corners
![]() | function GetCellHeight(XI, ZI: Integer): Single; |
![]() | function GetCellNormal(XI,ZI :Integer): TVector3s; virtual; |
Returns a normal at the given cell
![]() | function GetData: Pointer; virtual; abstract; |
![]() | function GetHeight(X, Z: Single): Single; virtual; |
Returns an interpolated height at the given point
![]() | function GetNormal(X,Z: Single): TVector3s; virtual; |
Returns an interpolated normal at the given point
![]() | function GetRawHeight(XI, ZI: Integer): Integer; virtual; abstract; |
![]() | class function IsAbstract: Boolean; override; |
![]() | function IsReady: Boolean; virtual; |
Returns True if the map object is ready to handle requests
![]() | procedure ObtainCell(X, Z: Single; out CellX, CellZ: Integer); |
Returns indices of map cell containing the given point
![]() | procedure ObtainRectHeights(const ARect: TRect; ABuf: Pointer); virtual; |
Copies a rectangular area of the map to a caller-allocated buffer
![]() | procedure SetCellHeightScale(const Value: Single); virtual; |
![]() | procedure SetCellWidthScale(const Value: Single); virtual; |
![]() | procedure SetDimensions(AWidth, AHeight: Integer); virtual; |
![]() | procedure SetHeightScale(const Value: Single); virtual; |
![]() | procedure SetProperties(Properties: Props.TProperties); override; |
![]() | procedure SetRawHeight(XI, ZI: Integer; const Value: Integer); virtual; abstract; |
![]() | procedure SwapRectHeights(const ARect: TRect; ABuf: Pointer); virtual; |
Swaps a rectangular area of the map with the contents of the specified buffer
![]() | function TraceRay(const Origin, Dir: TVector3s; out Point: TVector3s): Boolean; virtual; |
Returns True if the specified in map (model) space ray intersects with the map. Also returns the point of intersection.
![]() | property CellHeightScale: Single; |
![]() | property CellWidthScale: Single; |
![]() | property Data: Pointer; |
![]() | property DepthScale: Single; |
![]() | property ElementSize: Integer; |
![]() | property Height: Integer; |
![]() | property MaxHeight: Integer; |
![]() | property RawHeights[XI, ZI: Integer]: Integer; |
![]() | property Width: Integer; |
![]() | property CellHeightScale: Single; |
Map cell height
![]() | property CellWidthScale: Single; |
Map cell width
![]() | property Data: Pointer; |
Raw data
![]() | property DepthScale: Single; |
![]() | property ElementSize: Integer; |
Size of single element of raw data
![]() | property Height: Integer; |
Map height
![]() | property MaxHeight: Integer; |
![]() | property RawHeights[XI, ZI: Integer]: Integer; |
Raw heights
![]() | property Width: Integer; |
Map width
|
Last modified: 4 Jul, 2008 |