Difference between revisions of "TMap"

From Soldat Community Wiki
Jump to: navigation, search
m (Description)
m (Members: Reformatted table to be consistent with other tables)
Line 10: Line 10:
 
==Members==
 
==Members==
  
<code>
+
{| class="wikitable"
  <table>
+
|-
  <tr><th>Member declaration</th><th>Access mode</th></tr>
+
! Member declaration !! Access mode
  <tr><td>function [[TMap.RayCast|RayCast]](X1,Y1,X2,Y2:Single; Player,Flag,Bullet,CheckCollider:Boolean; Team:Byte):Boolean</td></tr>
+
|-
  <tr><td>function [[TMap.RayCastVector|RayCastVector]](A,B:TVector; Player,Flag,Bullet,CheckCollider:Boolean; Team:Byte):Boolean</td></tr>
+
| function [[TMap.RayCast|RayCast]](X1,Y1,X2,Y2:Single; Player,Flag,Bullet,CheckCollider:Boolean; Team:Byte):Boolean
  <tr><td>function [[TMap.AddObject|AddObject]](Obj:TNewMapObject):TActiveMapObject</td></tr>
+
| align="center" |
  <tr><td>function [[TMap.AddSpawnPoint|AddSpawnPoint]](Spawn:[[TNewSpawnPoint]]):[[TActiveSpawnPoint]]</td></tr>
+
|-
  <tr><td><br /></td></tr>
+
| function [[TMap.RayCastVector|RayCastVector]](A,B:TVector; Player,Flag,Bullet,CheckCollider:Boolean; Team:Byte):Boolean
  <tr><td>property [[TMap.Objects|Objects]][ID: Byte]: [[TActiveMapObject]]</td><td>R</td></tr>
+
| align="center" |
  <tr><td>property [[TMap.Spawns|Spawns]][ID: Byte]: [[TActiveSpawnPoint]]</td><td>R</td></tr>
+
|-
  <tr><td>property [[TMap.RedFlag|RedFlag]]: Byte</td><td>R</td></tr>
+
| function [[TMap.AddObject|AddObject]](Obj:[[TNewMapObject]]):[[TActiveMapObject]]
 +
| align="center" |
 +
|-
 +
| function [[TMap.AddSpawnPoint|AddSpawnPoint]](Spawn:[[TNewSpawnPoint]]):[[TActiveSpawnPoint]]
 +
| align="center" |
 +
|-
 +
| colspan="3" |
 +
|-
 +
| property [[TMap.Objects|Objects]][ID: Byte ]: [[TActiveMapObject]]
 +
| align="center" | R
 +
|-
 +
| property [[TMap.Spawns|Spawns]][ID: Byte]: [[TActiveSpawnPoint]]
 +
| align="center" | R
 +
|-
 +
| property [[TMap.RedFlag|RedFlag]]: Byte
 +
| align="center" | R
 +
|-
 +
| property [[TMap.BlueFlag|BlueFlag]]: Byte
 +
| align="center" | R
 +
|-
 +
| property [[TMap.YellowFlag|YellowFlag]]: Byte
 +
| align="center" | R
 +
|-
 +
| property [[TMap.OnBeforeMapChange|OnBeforeMapChange]]: [[TOnBeforeMapChangeEvent]]
 +
| align="center" | RW
 +
|-
 +
| property [[TMap.OnAfterMapChange|OnAfterMapChange]]: [[TOnAfterMapChangeEvent]]
 +
| align="center" | RW
 +
|}
 
   <tr><td>property [[TMap.BlueFlag|BlueFlag]]: Byte</td><td>R</td></tr>
 
   <tr><td>property [[TMap.BlueFlag|BlueFlag]]: Byte</td><td>R</td></tr>
 
   <tr><td>property [[TMap.YellowFlag|YellowFlag]]: Byte</td><td>R</td></tr>
 
   <tr><td>property [[TMap.YellowFlag|YellowFlag]]: Byte</td><td>R</td></tr>

Revision as of 16:12, 29 July 2013

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
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
property Objects[ID: Byte ]: TActiveMapObject R
property Spawns[ID: Byte]: TActiveSpawnPoint R
property RedFlag: Byte R
property BlueFlag: Byte R
property YellowFlag: Byte R
property OnBeforeMapChange: TOnBeforeMapChangeEvent RW
property OnAfterMapChange: TOnAfterMapChangeEvent RW
 <tr><td>property BlueFlag: Byte</td><td>R</td></tr>
 <tr><td>property YellowFlag: Byte</td><td>R</td></tr>
 <tr><td>property OnBeforeMapChange: TOnBeforeMapChangeEvent</td><td>RW</td></tr>
 <tr><td>property OnAfterMapChange: TOnAfterMapChangeEvent</td><td>RW</td></tr>