C# Class fCraft.ClassList

Exibir arquivo Open project: fragmer/fCraft Class Usage Examples

Public Properties

Property Type Description
classes PlayerClass>.Dictionary
classesByIndex List

Public Methods

Method Description
AddClass ( PlayerClass playerClass ) : bool
CanChangeName ( PlayerClass pc, string newName ) : bool
CanChangeRank ( PlayerClass pc, byte newRank ) : bool
ChangeName ( PlayerClass pc, string newName ) : void
ChangeRank ( PlayerClass pc, byte newRank ) : void
ClassList ( World _world ) : System
ContainsRank ( int rank ) : bool
DeleteClass ( int index ) : bool
FindClass ( string _name ) : PlayerClass
GetIndex ( PlayerClass pc ) : int
ParseClass ( string name ) : PlayerClass
ParseClassLimits ( PlayerClass pc ) : bool
ParseIndex ( int index ) : PlayerClass
ParseRank ( int maxRank ) : PlayerClass
RebuildIndex ( ) : void

Method Details

AddClass() public method

public AddClass ( PlayerClass playerClass ) : bool
playerClass PlayerClass
return bool

CanChangeName() public method

public CanChangeName ( PlayerClass pc, string newName ) : bool
pc PlayerClass
newName string
return bool

CanChangeRank() public method

public CanChangeRank ( PlayerClass pc, byte newRank ) : bool
pc PlayerClass
newRank byte
return bool

ChangeName() public method

public ChangeName ( PlayerClass pc, string newName ) : void
pc PlayerClass
newName string
return void

ChangeRank() public method

public ChangeRank ( PlayerClass pc, byte newRank ) : void
pc PlayerClass
newRank byte
return void

ClassList() public method

public ClassList ( World _world ) : System
_world World
return System

ContainsRank() public method

public ContainsRank ( int rank ) : bool
rank int
return bool

DeleteClass() public method

public DeleteClass ( int index ) : bool
index int
return bool

FindClass() public method

public FindClass ( string _name ) : PlayerClass
_name string
return PlayerClass

GetIndex() public method

public GetIndex ( PlayerClass pc ) : int
pc PlayerClass
return int

ParseClass() public method

public ParseClass ( string name ) : PlayerClass
name string
return PlayerClass

ParseClassLimits() public method

public ParseClassLimits ( PlayerClass pc ) : bool
pc PlayerClass
return bool

ParseIndex() public method

public ParseIndex ( int index ) : PlayerClass
index int
return PlayerClass

ParseRank() public method

public ParseRank ( int maxRank ) : PlayerClass
maxRank int
return PlayerClass

RebuildIndex() public method

public RebuildIndex ( ) : void
return void

Property Details

classes public_oe property

public Dictionary classes
return PlayerClass>.Dictionary

classesByIndex public_oe property

public List classesByIndex
return List