Difference between revisions of "TPlayers"

From Soldat Community Wiki
Jump to: navigation, search
m (Description)
 
(2 intermediate revisions by one other user not shown)
Line 5: Line 5:
 
Allows interaction with players and provides some identification functions
 
Allows interaction with players and provides some identification functions
  
  '''This class is assigned to global variable "Players"'''
+
  '''This class is assigned to global variable "[[Global_Variables.Players|Players]]"'''
  
 
  user constructable: '''NO'''
 
  user constructable: '''NO'''
Line 13: Line 13:
 
{| class="wikitable"  
 
{| class="wikitable"  
 
|-
 
|-
! Member declaration !! Access mode
+
! Member declaration !! Access mode !! SS Version
 
|-
 
|-
 
| function [[TPlayers.Add|Add]](Player: [[TNewPlayer]]): [[TActivePlayer]]
 
| function [[TPlayers.Add|Add]](Player: [[TNewPlayer]]): [[TActivePlayer]]
Line 28: Line 28:
 
|-
 
|-
 
| function [[TPlayers.GetByIP|GetByIP]](IP: string): [[TActivePlayer]]
 
| function [[TPlayers.GetByIP|GetByIP]](IP: string): [[TActivePlayer]]
|  
+
|
|-
 
 
|-
 
|-
 
| procedure [[TPlayers.Tell|Tell]](Text: string)
 
| procedure [[TPlayers.Tell|Tell]](Text: string)
 
|  
 
|  
 +
|-
 +
| procedure [[TPlayers.WorldText|WorldText]](Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale, X, Y: Single)
 +
|
 +
| 2.7.8.b1
 
|-
 
|-
 
| colspan="2" |  
 
| colspan="2" |  
Line 38: Line 41:
 
| property [[TPlayers.Player|Player]][i: Byte]: [[TActivePlayer]]
 
| property [[TPlayers.Player|Player]][i: Byte]: [[TActivePlayer]]
 
| align="center" | R  
 
| align="center" | R  
 +
|
 +
| default
 +
|-
 +
|-
 +
| property [[TPlayers.Active|Active]][i: Byte]: [[TActivePlayer]]
 +
| align="center" | R
 +
|
 
| default
 
| default
 
|-
 
|-

Latest revision as of 23:12, 6 May 2020

Inheritance

Description

Allows interaction with players and provides some identification functions

This class is assigned to global variable "Players"
user constructable: NO
user destructable:  NO

Members

Member declaration Access mode SS Version
function Add(Player: TNewPlayer): TActivePlayer
procedure WriteConsole(Text: string; Color: Longint)
procedure BigText(Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale: Single; X, Y: Integer)
function GetByName(Name: string): TActivePlayer
function GetByIP(IP: string): TActivePlayer
procedure Tell(Text: string)
procedure WorldText(Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale, X, Y: Single) 2.7.8.b1
property Player[i: Byte]: TActivePlayer R default
property Active[i: Byte]: TActivePlayer R default