Difference between revisions of "TNewPlayer"

From Soldat Community Wiki
Jump to: navigation, search
m (Members)
 
(11 intermediate revisions by 4 users not shown)
Line 5: Line 5:
  
 
==Description==
 
==Description==
Represents a new player (bot). To effectively create one, you can use [[TPlayers.Add|Players.Add]].
+
Represents a new player (bot). To effectively create one, you can use [[TPlayers.Add|Players.Add]].<br>
 +
'''Don't forget to free the instance after using it!'''<br>
 +
user constructable: '''YES'''
 +
user destructable:  '''YES'''
  
user constructable: '''YES'''<br>
+
==Members==
user destructable: '''YES'''
 
  
==Members==
+
{| class="wikitable"
<code>
+
! Member declaration !! Access mode !! Inherited
  <table>
+
|-
  <tr><th>Member declaration</th><th>Acess mode</th></tr>
+
| constructor [[Constructor|Create]] || align="center" | || align="center" | no
  <tr><td>constructor [[TNewPlayer.Create|Create]]</td></tr>
+
|-
  <tr><td>procedure [[TNewPlayer.Free|Free]]</td></tr>
+
| procedure [[Destructor|Free]] || align="center" | || align="center" | no
  <tr><td><br /></td></tr>
+
|-
  <tr><td>property [[TNewPlayer.Name|Name]]: string</td><td>RW</td></tr>
+
| colspan="3" |
  <tr><td>property [[TNewPlayer.Team|Team]]: Byte</td><td>RW</td></tr>
+
|-
  <tr><td>property [[TNewPlayer.Alive|Alive]]: Boolean</td><td>RW</td></tr>
+
| property [[TNewPlayer.Name|Name]]: string || align="center" | RW || align="center" | yes (modif.)
  <tr><td>property [[TNewPlayer.Health|Health]]: Integer</td><td>RW</td></tr>
+
|-
  <tr><td>property [[TNewPlayer.Primary|Primary]]: [[TWeapon]]</td><td>RW</td></tr>
+
| property [[TNewPlayer.Health|Health]]: Single || align="center" | RW || align="center" | yes (modif.)
  <tr><td>property [[TNewPlayer.Secondary|Secondary]]: [[TWeapon]]</td><td>RW</td></tr>
+
|-
  <tr><td>property [[TNewPlayer.ShirtColor|ShirtColor]]: Longword</td><td>RW</td></tr>
+
| property [[TPlayer.Vest|Vest]]: Single || align="center" | R || align="center" | yes
  <tr><td>property [[TNewPlayer.PantsColor|PantsColor]]: Longword</td><td>RW</td></tr>
+
|-
  <tr><td>property [[TNewPlayer.SkinColor|SkinColor]]: Longword</td><td>RW</td></tr>
+
| property [[TNewPlayer.Primary|Primary]]: [[TPlayerWeapon]] || align="center" | RW || align="center" | yes (modif.)
  <tr><td>property [[TNewPlayer.HairColor|HairColor]]: Longword</td><td>RW</td></tr>
+
|-
  <tr><td>property [[TNewPlayer.HairStyle|HairStyle]]: Byte</td><td>RW</td></tr>
+
| property [[TNewPlayer.Secondary|Secondary]]: [[TPlayerWeapon]] || align="center" | RW || align="center" | yes (modif.)
  <tr><td>property [[TNewPlayer.Headgear|Headgear]]: Byte</td><td>RW</td></tr>
+
|-
  <tr><td>property [[TNewPlayer.Chain|Chain]]: Byte</td><td>RW</td></tr>
+
| property [[TNewPlayer.ShirtColor|ShirtColor]]: Longword || align="center" | RW || align="center" | yes (modif.)
  <tr><td>property [[TNewPlayer.Dummy|Dummy]]: Boolean</td><td>RW</td></tr>
+
|-
</table>
+
| property [[TNewPlayer.PantsColor|PantsColor]]: Longword || align="center" | RW || align="center" | yes (modif.)
</code>
+
|-
 +
| property [[TNewPlayer.SkinColor|SkinColor]]: Longword || align="center" | RW || align="center" | yes (modif.)
 +
|-
 +
| property [[TNewPlayer.HairColor|HairColor]]: Longword || align="center" | RW || align="center" | yes (modif.)
 +
|-
 +
| property [[TPlayer.FavouriteWeapon|FavouriteWeapon]]: string || align="center" | RW || align="center" | yes
 +
|-
 +
| property [[TPlayer.ChosenSecondaryWeapon|ChosenSecondaryWeapon]]: Byte || align="center" | R || align="center" | yes
 +
|-
 +
| property [[TPlayer.Friend|Friend]]: string || align="center" | RW || align="center" | yes
 +
|-
 +
| property [[TPlayer.Accuracy|Accuracy]]: Byte || align="center" | RW || align="center" | yes
 +
|-
 +
| property [[TPlayer.ShootDead|ShootDead]]: Boolean || align="center" | RW || align="center" | yes
 +
|-
 +
| property [[TPlayer.GrenadeFrequency|GrenadeFrequency]]: Byte || align="center" | RW || align="center" | yes
 +
|-
 +
| property [[TPlayer.Camping|Camping]]: Boolean || align="center" | RW || align="center" | yes
 +
|-
 +
| property [[TPlayer.OnStartUse|OnStartUse]]: Byte || align="center" | RW || align="center" | yes
 +
|-
 +
| property [[TNewPlayer.HairStyle|HairStyle]]: Byte || align="center" | RW || align="center" | yes (modif.)
 +
|-
 +
| property [[TNewPlayer.Headgear|Headgear]]: Byte || align="center" | RW || align="center" | yes (modif.)
 +
|-
 +
| property [[TNewPlayer.Chain|Chain]]: Byte || align="center" | RW || align="center" | yes (modif.)
 +
|-
 +
| property [[TPlayer.ChatFrequency|ChatFrequency]]: Byte || align="center" | RW || align="center" | yes
 +
|-
 +
| property [[TPlayer.ChatKill|ChatKill]]: string || align="center" | RW || align="center" | yes
 +
|-
 +
| property [[TPlayer.ChatDead|ChatDead]]: string || align="center" | RW || align="center" | yes
 +
|-
 +
| property [[TPlayer.ChatLowHealth|ChatLowHealth]]: string || align="center" | RW || align="center" | yes
 +
|-
 +
| property [[TPlayer.ChatSeeEnemy|ChatSeeEnemy]]: string || align="center" | RW || align="center" | yes
 +
|-
 +
| property [[TPlayer.ChatWinning|ChatWinning]]: string || align="center" | RW || align="center" | yes
 +
|-
 +
| property [[TNewPlayer.Dummy|Dummy]]: Boolean || align="center" | RW || align="center" | yes (modif.)
 +
|-
 +
| property [[TNewPlayer.Team|Team]]: Byte || align="center" | RW || align="center" | yes (modif.)
 +
|-
 +
| property [[TPlayer.Alive|Alive]]: Boolean || align="center" | RW || align="center" | yes
 +
|}
 +
 
 +
[[Category:Classes]][[Category:TPlayer]]

Latest revision as of 12:51, 12 September 2016

Inheritance

Description

Represents a new player (bot). To effectively create one, you can use Players.Add.
Don't forget to free the instance after using it!

user constructable: YES
user destructable:  YES

Members

Member declaration Access mode Inherited
constructor Create no
procedure Free no
property Name: string RW yes (modif.)
property Health: Single RW yes (modif.)
property Vest: Single R yes
property Primary: TPlayerWeapon RW yes (modif.)
property Secondary: TPlayerWeapon RW yes (modif.)
property ShirtColor: Longword RW yes (modif.)
property PantsColor: Longword RW yes (modif.)
property SkinColor: Longword RW yes (modif.)
property HairColor: Longword RW yes (modif.)
property FavouriteWeapon: string RW yes
property ChosenSecondaryWeapon: Byte R yes
property Friend: string RW yes
property Accuracy: Byte RW yes
property ShootDead: Boolean RW yes
property GrenadeFrequency: Byte RW yes
property Camping: Boolean RW yes
property OnStartUse: Byte RW yes
property HairStyle: Byte RW yes (modif.)
property Headgear: Byte RW yes (modif.)
property Chain: Byte RW yes (modif.)
property ChatFrequency: Byte RW yes
property ChatKill: string RW yes
property ChatDead: string RW yes
property ChatLowHealth: string RW yes
property ChatSeeEnemy: string RW yes
property ChatWinning: string RW yes
property Dummy: Boolean RW yes (modif.)
property Team: Byte RW yes (modif.)
property Alive: Boolean RW yes