C# Class BF2Statistics.MedalData.Rank

Inheritance: IAward
Show file Open project: BF2Statistics/ControlCenter Class Usage Examples

Public Methods

Method Description
Exists ( int RankId ) : bool

Returns whether or not the Rank ID provided is a valid BF2 Rank index

GetCondition ( ) : Condition

Returns the awards conditions

GetName ( int RankId ) : string

Returns the Name of the Rank by Index

Rank ( int Id, Condition Conditions ) : System

Constructor

RestoreDefaultConditions ( ) : void

Restores the condition of this award to the default (vanilla) state

SetCondition ( Condition C ) : void

Sets the Condition, or Condition list to earn the award

ToPython ( ) : string

Converts the rank data into python code

ToString ( ) : string

Returns the name of the rank

ToTree ( ) : TreeNode

Converts the condition into a viewable TreeNode for the Criteria Editor

UndoConditionChanges ( ) : void

Restores any changes made to the conditions of this award

Method Details

Exists() public static method

Returns whether or not the Rank ID provided is a valid BF2 Rank index
public static Exists ( int RankId ) : bool
RankId int
return bool

GetCondition() public method

Returns the awards conditions
public GetCondition ( ) : Condition
return Condition

GetName() public static method

Returns the Name of the Rank by Index
public static GetName ( int RankId ) : string
RankId int
return string

Rank() public method

Constructor
public Rank ( int Id, Condition Conditions ) : System
Id int The rank ID
Conditions Condition The conditions to earn the rank
return System

RestoreDefaultConditions() public method

Restores the condition of this award to the default (vanilla) state
public RestoreDefaultConditions ( ) : void
return void

SetCondition() public method

Sets the Condition, or Condition list to earn the award
public SetCondition ( Condition C ) : void
C Condition The condition or condition list
return void

ToPython() public method

Converts the rank data into python code
public ToPython ( ) : string
return string

ToString() public method

Returns the name of the rank
public ToString ( ) : string
return string

ToTree() public method

Converts the condition into a viewable TreeNode for the Criteria Editor
public ToTree ( ) : TreeNode
return System.Windows.Forms.TreeNode

UndoConditionChanges() public method

Restores any changes made to the conditions of this award
public UndoConditionChanges ( ) : void
return void