Difference between revisions of "TActivePlayer"

From Soldat Community Wiki
Jump to: navigation, search
m (Description)
(Members: table type conversion, added inherited members)
Line 11: Line 11:
  
 
==Members==
 
==Members==
<code>
+
 
  <table>
+
{| class="wikitable"
  <tr><th>Member declaration</th><th>Access mode</th></tr>
+
! Member declaration !! Access mode !! Inherited
  <tr><td>function [[TActivePlayer.Ban|Ban]](Time: Integer; Reason: string): Boolean</td></tr>
+
|-
  <tr><td>function [[TActivePlayer.Kick|Kick]]: Boolean</td></tr>
+
| function [[TActivePlayer.Ban|Ban]](Time: Integer; Reason: string): Boolean ||  || no
  <tr><td>procedure [[TActivePlayer.Say|Say]](Text: string)</td></tr>
+
|-
  <tr><td>procedure [[TActivePlayer.Damage|Damage]](Shooter: Byte; Damage: Integer)</td></tr>
+
| function [[TActivePlayer.Kick|Kick]]: Boolean ||  || no
  <tr><td>procedure [[TActivePlayer.BigText|BigText]](Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale: Single; X, Y: Integer)</td></tr>
+
|-
  <tr><td>procedure [[TActivePlayer.ForceWeapon|ForceWeapon]](Primary, Secondary: [[TWeapon]])</td></tr>
+
| procedure [[TActivePlayer.Say|Say]](Text: string) ||  || no
  <tr><td>procedure [[TActivePlayer.Forward|Forward]](TargetIP: string; TargetPort: Word; Message: string)</td></tr>
+
|-
  <tr><td>procedure [[TActivePlayer.GiveBonus|GiveBonus]](BType: Byte)</td></tr>
+
| procedure [[TActivePlayer.Damage|Damage]](Shooter: Byte; Damage: Integer) ||  || no
  <tr><td>procedure [[TActivePlayer.Move|Move]](X, Y: Single)</td></tr>
+
|-
  <tr><td>procedure [[TActivePlayer.Tell|Tell]](Text: string)</td></tr>
+
| procedure [[TActivePlayer.BigText|BigText]](Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale: Single; X, Y: Integer) ||  || no
  <tr><td>procedure [[TActivePlayer.WriteConsole|WriteConsole]](Text: string; Color: Longint)</td></tr>
+
|-
  <tr><td><br /></td></tr>
+
| procedure [[TActivePlayer.ForceWeapon|ForceWeapon]](Primary, Secondary: [[TWeapon]]) ||  || no
  <tr><td>property [[TActivePlayer.ID|ID]]: Byte</td><td>R</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.Team|Team]]: Byte</td><td>RW</td></tr>
+
| procedure [[TActivePlayer.Forward|Forward]](TargetIP: string; TargetPort: Word; Message: string) ||  || no
  <tr><td>property [[TActivePlayer.Alive|Alive]]: Boolean</td><td>RW</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.Kills|Kills]]: Integer</td><td>RW</td></tr>
+
| procedure [[TActivePlayer.GiveBonus|GiveBonus]](BType: Byte) ||  || no
  <tr><td>property [[TActivePlayer.Deaths|Deaths]]: Integer</td><td>R</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.Ping|Ping]]: Integer</td><td>R</td></tr>
+
| procedure [[TActivePlayer.Move|Move]](X, Y: Single) ||  || no
  <tr><td>property [[TActivePlayer.Active|Active]]: Boolean</td><td>R</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.IP|IP]]: string</td><td>R</td></tr>
+
| procedure [[TActivePlayer.Tell|Tell]](Text: string) ||  || no
  <tr><td>property [[TActivePlayer.Port|Port]]: Word</td><td>R</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.VelX|VelX]]: Single</td><td>R</td></tr>
+
| procedure [[TActivePlayer.WriteConsole|WriteConsole]](Text: string; Color: Longint) ||  || no
  <tr><td>property [[TActivePlayer.VelY|VelY]]: Single</td><td>R</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.Muted|Muted]]: Boolean</td><td>RW</td></tr>
+
| colspan="3" |
  <tr><td>property [[TActivePlayer.Jets|Jets]]: Integer</td><td>R</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.Grenades|Grenades]]: Byte</td><td>R</td></tr>
+
| property [[TPlayer.Team|Team]]: Byte || R || yes
  <tr><td>property [[TActivePlayer.X|X]]: Single</td><td>R</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.Y|Y]]: Single</td><td>R</td></tr>
+
| property [[TPlayer.Health|Health]]: string || R || yes
  <tr><td>property [[TActivePlayer.Flagger|Flagger]]: Boolean</td><td>R</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.Time|Time]]: Integer</td><td>R</td></tr>
+
| property [[TPlayer.Primary|Primary]]: [[TPlayerWeapon]] || R || yes
  <tr><td>property [[TActivePlayer.OnGround|OnGround]]: Boolean</td><td>R</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.Human|Human]]: Boolean</td><td>R</td></tr>
+
| property [[TPlayer.Secondary|Secondary]]: [[TPlayerWeapon]] || R || yes
  <tr><td>property [[TActivePlayer.Direction|Direction]]: Shortint</td><td>R</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.Flags|Flags]]: Byte</td><td>R</td></tr>
+
| property [[TPlayer.ShirtColor|ShirtColor]]: Longword || R || yes
  <tr><td>property [[TActivePlayer.HWID|HWID]]: string</td><td>R</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.KeyUp|KeyUp]]: Boolean</td><td>R</td></tr>
+
| property [[TPlayer.PantsColor|PantsColor]]: Longword  || R || yes
  <tr><td>property [[TActivePlayer.KeyLeft|KeyLeft]]: Boolean</td><td>R</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.KeyRight|KeyRight]]: Boolean</td><td>R</td></tr>
+
| property [[TPlayer.SkinColor|SkinColor]]: Longword || R || yes
  <tr><td>property [[TActivePlayer.KeyShoot|KeyShoot]]: Boolean</td><td>R</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.KeyJetpack|KeyJetpack]]: Boolean</td><td>R</td></tr>
+
| property [[TPlayer.HairColor|HairColor]]: Longword || R || yes
  <tr><td>property [[TActivePlayer.KeyGrenade|KeyGrenade]]: Boolean</td><td>R</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.KeyChangeWeap|KeyChangeWeap]]: Boolean</td><td>R</td></tr>
+
| property [[TPlayer.FavouriteWeapon|FavouriteWeapon]]: string || RW || yes
  <tr><td>property [[TActivePlayer.KeyThrow|KeyThrow]]: Boolean</td><td>R</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.KeyReload|KeyReload]]: Boolean</td><td>R</td></tr>
+
| property [[TPlayer.ChosenSecondaryWeapon|ChosenSecondaryWeapon]]: Byte || R ||
  <tr><td>property [[TActivePlayer.KeyCrouch|KeyCrouch]]: Boolean</td><td>R</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.KeyProne|KeyProne]]: Boolean</td><td>R</td></tr>
+
| property [[TPlayer.Friend|Friend]]: string || RW || yes
  <tr><td>property [[TActivePlayer.WeaponActive|WeaponActive]][ID: Byte]: Boolean</td><td>W</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.OnFlagGrab|OnFlagGrab]]: [[TOnFlagGrabEvent]]</td><td>RW</td></tr>
+
| property [[TPlayer.Accuracy|Accuracy]]: Byte || RW || yes
  <tr><td>property [[TActivePlayer.OnFlagReturn|OnFlagReturn]]: [[TOnFlagReturnEvent]]</td><td>RW</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.OnFlagScore|OnFlagScore]]: [[TOnFlagScoreEvent]]</td><td>RW</td></tr>
+
| property [[TPlayer.ShootDead|ShootDead]]: Boolean || RW || yes
  <tr><td>property [[TActivePlayer.OnBeforeRespawn|OnBeforeRespawn]]: [[TOnBeforeRespawnEvent]]</td><td>RW</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.OnAfterRespawn|OnAfterRespawn]]: [[TOnAfterRespawnEvent]]</td><td>RW</td></tr>
+
| property [[TPlayer.GrenadeFrequency|GrenadeFrequency]]: Byte || RW || yes
  <tr><td>property [[TActivePlayer.OnDamage|OnDamage]]: [[TOnDamageEvent]]</td><td>RW</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.OnKill|OnKill]]: [[TOnKillEvent]]</td><td>RW</td></tr>
+
| property [[TPlayer.Camping|Camping]]: Boolean || RW || yes
  <tr><td>property [[TActivePlayer.OnWeaponChange|OnWeaponChange]]: [[TOnWeaponChangeEvent]]</td><td>RW</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.OnVoteMapStart|OnVoteMapStart]]: [[TOnVoteMapStartEvent]]</td><td>RW</td></tr>
+
| property [[TPlayer.OnStartUse|OnStartUse]]: Byte || RW || yes
  <tr><td>property [[TActivePlayer.OnVoteKickStart|OnVoteKickStart]]: [[TOnVoteKickStartEvent]]</td><td>RW</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.OnVoteMap|OnVoteMap]]: [[TOnVoteMapEvent]]</td><td>RW</td></tr>
+
| property [[TPlayer.HairStyle|HairStyle]]: Byte || R || yes
  <tr><td>property [[TActivePlayer.OnVoteKick|OnVoteKick]]: [[TOnVoteKick]]</td><td>RW</td></tr>
+
|-
  <tr><td>property [[TActivePlayer.OnSpeak|OnSpeak]]: [[TOnSpeakEvent]]</td><td>RW</td></tr>
+
| property [[TPlayer.Headgear|Headgear]]: Byte || R || yes
  <tr><td>property [[TActivePlayer.OnCommand|OnCommand]]: [[TOnCommandEvent]]</td><td>RW</td></tr>
+
|-
  </table>
+
| property [[TPlayer.Chain|Chain]]: Byte || R || yes
</code>
+
|-
 +
| property [[TPlayer.ChatFrequency|ChatFrequency]]: Byte || RW || yes
 +
|-
 +
| property [[TPlayer.ChatKill|ChatKill]]: string || RW || yes
 +
|-
 +
| property [[TPlayer.ChatDead|ChatDead]]: string || RW || yes
 +
|-
 +
| property [[TPlayer.ChatLowHealth|ChatLowHealth]]: string || RW || yes
 +
|-
 +
| property [[TPlayer.ChatSeeEnemy|ChatSeeEnemy]]: string || RW || yes
 +
|-
 +
| property [[TPlayer.ChatWinning|ChatWinning]]: string || RW || yes
 +
|-
 +
| property [[TPlayer.Dummy|Dummy]]: Boolean || R || yes
 +
|-
 +
| property [[TActivePlayer.ID|ID]]: Byte || R || no
 +
|-
 +
| property [[TActivePlayer.Team|Team]]: Byte || RW || yes (modif.)
 +
|-
 +
| property [[TActivePlayer.Alive|Alive]]: Boolean || RW || yes (modif.)
 +
|-
 +
| property [[TActivePlayer.Kills|Kills]]: Integer || RW || no
 +
|-
 +
| property [[TActivePlayer.Deaths|Deaths]]: Integer || R || no
 +
|-
 +
| property [[TActivePlayer.Ping|Ping]]: Integer || R || no
 +
|-
 +
| property [[TActivePlayer.Active|Active]]: Boolean || R || no
 +
|-
 +
| property [[TActivePlayer.IP|IP]]: string || R || no
 +
|-
 +
| property [[TActivePlayer.Port|Port]]: Word || R || no
 +
|-
 +
| property [[TActivePlayer.VelX|VelX]]: Single || R || no
 +
|-
 +
| property [[TActivePlayer.VelY|VelY]]: Single || R || no
 +
|-
 +
| property [[TActivePlayer.Muted|Muted]]: Boolean || RW || no
 +
|-
 +
| property [[TActivePlayer.Jets|Jets]]: Integer || R || no
 +
|-
 +
| property [[TActivePlayer.Grenades|Grenades]]: Byte || R || no
 +
|-
 +
| property [[TActivePlayer.X|X]]: Single || R || no
 +
|-
 +
| property [[TActivePlayer.Y|Y]]: Single || R || no
 +
|-
 +
| property [[TActivePlayer.Flagger|Flagger]]: Boolean || R || no
 +
|-
 +
| property [[TActivePlayer.Time|Time]]: Integer || R || no
 +
|-
 +
| property [[TActivePlayer.OnGround|OnGround]]: Boolean || R || no
 +
|-
 +
| property [[TActivePlayer.Human|Human]]: Boolean || R || no
 +
|-
 +
| property [[TActivePlayer.Direction|Direction]]: Shortint || R || no
 +
|-
 +
| property [[TActivePlayer.Flags|Flags]]: Byte || R || no
 +
|-
 +
| property [[TActivePlayer.HWID|HWID]]: string || R || no
 +
|-
 +
| property [[TActivePlayer.KeyUp|KeyUp]]: Boolean || R || no
 +
|-
 +
| property [[TActivePlayer.KeyLeft|KeyLeft]]: Boolean || R || no
 +
|-
 +
| property [[TActivePlayer.KeyRight|KeyRight]]: Boolean || R || no
 +
|-
 +
| property [[TActivePlayer.KeyShoot|KeyShoot]]: Boolean || R || no
 +
|-
 +
| property [[TActivePlayer.KeyJetpack|KeyJetpack]]: Boolean || R || no
 +
|-
 +
| property [[TActivePlayer.KeyGrenade|KeyGrenade]]: Boolean || R || no
 +
|-
 +
| property [[TActivePlayer.KeyChangeWeap|KeyChangeWeap]]: Boolean || R || no
 +
|-
 +
| property [[TActivePlayer.KeyThrow|KeyThrow]]: Boolean || R || no
 +
|-
 +
| property [[TActivePlayer.KeyReload|KeyReload]]: Boolean || R || no
 +
|-
 +
| property [[TActivePlayer.KeyCrouch|KeyCrouch]]: Boolean || R || no
 +
|-
 +
| property [[TActivePlayer.KeyProne|KeyProne]]: Boolean || R || no
 +
|-
 +
| property [[TActivePlayer.WeaponActive|WeaponActive]][ID: Byte]: Boolean || W || no
 +
|-
 +
| property [[TActivePlayer.OnFlagGrab|OnFlagGrab]]: [[TOnFlagGrabEvent]] || RW || no
 +
|-
 +
| property [[TActivePlayer.OnFlagReturn|OnFlagReturn]]: [[TOnFlagReturnEvent]] || RW || no
 +
|-
 +
| property [[TActivePlayer.OnFlagScore|OnFlagScore]]: [[TOnFlagScoreEvent]] || RW || no
 +
|-
 +
| property [[TActivePlayer.OnBeforeRespawn|OnBeforeRespawn]]: [[TOnBeforeRespawnEvent]] || RW || no
 +
|-
 +
| property [[TActivePlayer.OnAfterRespawn|OnAfterRespawn]]: [[TOnAfterRespawnEvent]] || RW || no
 +
|-
 +
| property [[TActivePlayer.OnDamage|OnDamage]]: [[TOnDamageEvent]] || RW || no
 +
|-
 +
| property [[TActivePlayer.OnKill|OnKill]]: [[TOnKillEvent]] || RW || no
 +
|-
 +
| property [[TActivePlayer.OnWeaponChange|OnWeaponChange]]: [[TOnWeaponChangeEvent]] || RW || no
 +
|-
 +
| property [[TActivePlayer.OnVoteMapStart|OnVoteMapStart]]: [[TOnVoteMapStartEvent]] || RW || no
 +
|-
 +
| property [[TActivePlayer.OnVoteKickStart|OnVoteKickStart]]: [[TOnVoteKickStartEvent]] || RW || no
 +
|-
 +
| property [[TActivePlayer.OnVoteMap|OnVoteMap]]: [[TOnVoteMapEvent]] || RW || no
 +
|-
 +
| property [[TActivePlayer.OnVoteKick|OnVoteKick]]: [[TOnVoteKick]] || RW || no
 +
|-
 +
| property [[TActivePlayer.OnSpeak|OnSpeak]]: [[TOnSpeakEvent]] || RW || no
 +
|-
 +
| property [[TActivePlayer.OnCommand|OnCommand]]: [[TOnCommandEvent]] || RW || no
 +
|}
 +
 
 
[[Category:Classes]]
 
[[Category:Classes]]

Revision as of 14:24, 26 July 2013

Inheritance

Description

Represents an active player. Accessible trough Players[] array property.

user constructable: NO
user destructable: NO

Members

Member declaration Access mode Inherited
function Ban(Time: Integer; Reason: string): Boolean no
function Kick: Boolean no
procedure Say(Text: string) no
procedure Damage(Shooter: Byte; Damage: Integer) no
procedure BigText(Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale: Single; X, Y: Integer) no
procedure ForceWeapon(Primary, Secondary: TWeapon) no
procedure Forward(TargetIP: string; TargetPort: Word; Message: string) no
procedure GiveBonus(BType: Byte) no
procedure Move(X, Y: Single) no
procedure Tell(Text: string) no
procedure WriteConsole(Text: string; Color: Longint) no
property Team: Byte R yes
property Health: string R yes
property Primary: TPlayerWeapon R yes
property Secondary: TPlayerWeapon R yes
property ShirtColor: Longword R yes
property PantsColor: Longword R yes
property SkinColor: Longword R yes
property HairColor: Longword R yes
property FavouriteWeapon: string RW yes
property ChosenSecondaryWeapon: Byte R
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 R yes
property Headgear: Byte R yes
property Chain: Byte R yes
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 R yes
property ID: Byte R no
property Team: Byte RW yes (modif.)
property Alive: Boolean RW yes (modif.)
property Kills: Integer RW no
property Deaths: Integer R no
property Ping: Integer R no
property Active: Boolean R no
property IP: string R no
property Port: Word R no
property VelX: Single R no
property VelY: Single R no
property Muted: Boolean RW no
property Jets: Integer R no
property Grenades: Byte R no
property X: Single R no
property Y: Single R no
property Flagger: Boolean R no
property Time: Integer R no
property OnGround: Boolean R no
property Human: Boolean R no
property Direction: Shortint R no
property Flags: Byte R no
property HWID: string R no
property KeyUp: Boolean R no
property KeyLeft: Boolean R no
property KeyRight: Boolean R no
property KeyShoot: Boolean R no
property KeyJetpack: Boolean R no
property KeyGrenade: Boolean R no
property KeyChangeWeap: Boolean R no
property KeyThrow: Boolean R no
property KeyReload: Boolean R no
property KeyCrouch: Boolean R no
property KeyProne: Boolean R no
property WeaponActive[ID: Byte]: Boolean W no
property OnFlagGrab: TOnFlagGrabEvent RW no
property OnFlagReturn: TOnFlagReturnEvent RW no
property OnFlagScore: TOnFlagScoreEvent RW no
property OnBeforeRespawn: TOnBeforeRespawnEvent RW no
property OnAfterRespawn: TOnAfterRespawnEvent RW no
property OnDamage: TOnDamageEvent RW no
property OnKill: TOnKillEvent RW no
property OnWeaponChange: TOnWeaponChangeEvent RW no
property OnVoteMapStart: TOnVoteMapStartEvent RW no
property OnVoteKickStart: TOnVoteKickStartEvent RW no
property OnVoteMap: TOnVoteMapEvent RW no
property OnVoteKick: TOnVoteKick RW no
property OnSpeak: TOnSpeakEvent RW no
property OnCommand: TOnCommandEvent RW no