Difference between revisions of "TMap"
(→Members) |
(Added SetMap procedure and SoldatServer Version Column to indicate when a feature has been added) |
||
Line 12: | Line 12: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
− | ! Member declaration !! Access mode | + | ! Member declaration !! Access mode !! SS Version |
|- | |- | ||
| function [[TMap.RayCast|RayCast]](X1,Y1,X2,Y2:Single; Player,Flag,Bullet,CheckCollider:Boolean; Team:Byte):Boolean | | function [[TMap.RayCast|RayCast]](X1,Y1,X2,Y2:Single; Player,Flag,Bullet,CheckCollider:Boolean; Team:Byte):Boolean | ||
Line 28: | Line 28: | ||
| procedure [[TMap.NextMap|NextMap]] | | procedure [[TMap.NextMap|NextMap]] | ||
| align="center" | | | align="center" | | ||
+ | |- | ||
+ | | procedure [[TMap.SetMap|SetMap]](NewMap: string) | ||
+ | | align="center" | | ||
+ | | 2.7.7b1 | ||
|- | |- | ||
| colspan="3" | | | colspan="3" | |
Revision as of 16:24, 5 April 2014
Inheritance
Description
Used to access information on player's field of vision, get a flag's pointer or creating new objects or spawnpoints on the map.
This class is assigned to global variable "Map"
Members
Member declaration | Access mode | SS Version |
---|---|---|
function RayCast(X1,Y1,X2,Y2:Single; Player,Flag,Bullet,CheckCollider:Boolean; Team:Byte):Boolean | ||
function RayCastVector(A,B:TVector; Player,Flag,Bullet,CheckCollider:Boolean; Team:Byte):Boolean | ||
function AddObject(Obj:TNewMapObject):TActiveMapObject | ||
function AddSpawnPoint(Spawn:TNewSpawnPoint):TActiveSpawnPoint | ||
procedure NextMap | ||
procedure SetMap(NewMap: string) | 2.7.7b1 | |
property Objects[ID: Byte ]: TActiveMapObject | R | |
property Spawns[ID: Byte]: TActiveSpawnPoint | R | |
property RedFlag: TActiveFlag | R | |
property BlueFlag: TActiveFlag | R | |
property YellowFlag: TActiveFlag | R | |
property OnBeforeMapChange: TOnBeforeMapChangeEvent | RW | |
property OnAfterMapChange: TOnAfterMapChangeEvent | RW |