C# Class OpenRA.Player

Datei anzeigen Open project: pchote/OpenRA Class Usage Examples

Public Properties

Property 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

Public Methods

Method 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

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

Method Details

CanTargetActor() public method

public CanTargetActor ( OpenRA.Actor a ) : bool
a OpenRA.Actor
return bool

CanViewActor() public method

public CanViewActor ( OpenRA.Actor a ) : bool
a OpenRA.Actor
return bool

Equals() public method

public Equals ( LuaRuntime runtime, LuaValue left, LuaValue right ) : LuaValue
runtime LuaRuntime
left LuaValue
right LuaValue
return LuaValue

IsAlliedWith() public method

public IsAlliedWith ( Player p ) : bool
p Player
return bool

OnScriptBind() public method

public OnScriptBind ( ScriptContext context ) : void
context ScriptContext
return void

Player() public method

public Player ( World world, Session client, PlayerReference pr ) : System
world World
client Session
pr PlayerReference
return System

PlayerStanceColor() public method

public PlayerStanceColor ( OpenRA.Actor a ) : Color
a OpenRA.Actor
return System.Drawing.Color

ToString() public method

public ToString ( LuaRuntime runtime ) : LuaValue
runtime LuaRuntime
return LuaValue

ToString() public method

public ToString ( ) : string
return string

this() public method

public this ( LuaRuntime runtime, LuaValue keyValue ) : LuaValue
runtime LuaRuntime
keyValue LuaValue
return LuaValue

Property Details

ClientIndex public_oe property

public int ClientIndex
return int

Color public_oe property

public HSLColor,OpenRA.FileFormats Color
return OpenRA.FileFormats.HSLColor

DisplayFaction public_oe property

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

Faction public_oe property

public FactionInfo Faction
return FactionInfo

HasObjectives public_oe property

public bool HasObjectives
return bool

InternalName public_oe property

public string InternalName
return string

IsBot public_oe property

public bool IsBot
return bool

NonCombatant public_oe property

public bool NonCombatant
return bool

Playable public_oe property

public bool Playable
return bool

PlayerActor public_oe property

public Actor,OpenRA PlayerActor
return OpenRA.Actor

PlayerName public_oe property

public string PlayerName
return string

PlayerReference public_oe property

public PlayerReference PlayerReference
return PlayerReference

Shroud public_oe property

public Shroud,OpenRA.Traits Shroud
return OpenRA.Traits.Shroud

SpawnPoint public_oe property

public int SpawnPoint
return int

Spectating public_oe property

public bool Spectating
return bool

Stances public_oe property

public Dictionary Stances
return Stance>.Dictionary

WinState public_oe property

public WinState WinState
return WinState