C# Class OpenRA.Player

Afficher le fichier Open project: pchote/OpenRA Class Usage Examples

Méthodes publiques

Свойство Type Description
ClientIndex int
Color OpenRA.FileFormats.HSLColor
DisplayFaction FactionInfo
Faction FactionInfo
HasObjectives bool
InternalName string
IsBot bool
NonCombatant bool
Playable bool
PlayerActor OpenRA.Actor
PlayerName string
PlayerReference PlayerReference
Shroud OpenRA.Traits.Shroud
SpawnPoint int
Spectating bool
Stances Stance>.Dictionary
WinState WinState

Méthodes publiques

Méthode Description
CanTargetActor ( OpenRA.Actor a ) : bool
CanViewActor ( OpenRA.Actor a ) : bool
Equals ( LuaRuntime runtime, LuaValue left, LuaValue right ) : LuaValue
IsAlliedWith ( Player p ) : bool
OnScriptBind ( ScriptContext context ) : void
Player ( World world, Session client, PlayerReference pr ) : System
PlayerStanceColor ( OpenRA.Actor a ) : Color
ToString ( LuaRuntime runtime ) : LuaValue
ToString ( ) : string
this ( LuaRuntime runtime, LuaValue keyValue ) : LuaValue

Private Methods

Méthode Description
ChooseDisplayFaction ( World world, string factionName ) : FactionInfo
ChooseFaction ( World world, string name, bool requireSelectable = true ) : FactionInfo

Method Details

CanTargetActor() public méthode

public CanTargetActor ( OpenRA.Actor a ) : bool
a OpenRA.Actor
Résultat bool

CanViewActor() public méthode

public CanViewActor ( OpenRA.Actor a ) : bool
a OpenRA.Actor
Résultat bool

Equals() public méthode

public Equals ( LuaRuntime runtime, LuaValue left, LuaValue right ) : LuaValue
runtime LuaRuntime
left LuaValue
right LuaValue
Résultat LuaValue

IsAlliedWith() public méthode

public IsAlliedWith ( Player p ) : bool
p Player
Résultat bool

OnScriptBind() public méthode

public OnScriptBind ( ScriptContext context ) : void
context ScriptContext
Résultat void

Player() public méthode

public Player ( World world, Session client, PlayerReference pr ) : System
world World
client Session
pr PlayerReference
Résultat System

PlayerStanceColor() public méthode

public PlayerStanceColor ( OpenRA.Actor a ) : Color
a OpenRA.Actor
Résultat System.Drawing.Color

ToString() public méthode

public ToString ( LuaRuntime runtime ) : LuaValue
runtime LuaRuntime
Résultat LuaValue

ToString() public méthode

public ToString ( ) : string
Résultat string

this() public méthode

public this ( LuaRuntime runtime, LuaValue keyValue ) : LuaValue
runtime LuaRuntime
keyValue LuaValue
Résultat LuaValue

Property Details

ClientIndex public_oe property

public int ClientIndex
Résultat int

Color public_oe property

public HSLColor,OpenRA.FileFormats Color
Résultat OpenRA.FileFormats.HSLColor

DisplayFaction public_oe property

The faction (including Random, etc) that was selected in the lobby.
public FactionInfo DisplayFaction
Résultat FactionInfo

Faction public_oe property

public FactionInfo Faction
Résultat FactionInfo

HasObjectives public_oe property

public bool HasObjectives
Résultat bool

InternalName public_oe property

public string InternalName
Résultat string

IsBot public_oe property

public bool IsBot
Résultat bool

NonCombatant public_oe property

public bool NonCombatant
Résultat bool

Playable public_oe property

public bool Playable
Résultat bool

PlayerActor public_oe property

public Actor,OpenRA PlayerActor
Résultat OpenRA.Actor

PlayerName public_oe property

public string PlayerName
Résultat string

PlayerReference public_oe property

public PlayerReference PlayerReference
Résultat PlayerReference

Shroud public_oe property

public Shroud,OpenRA.Traits Shroud
Résultat OpenRA.Traits.Shroud

SpawnPoint public_oe property

public int SpawnPoint
Résultat int

Spectating public_oe property

public bool Spectating
Résultat bool

Stances public_oe property

public Dictionary Stances
Résultat Stance>.Dictionary

WinState public_oe property

public WinState WinState
Résultat WinState