Пример #1
0
 // Constructors
 public Player(AgentItem agent)
 {
     this.instid = agent.getInstid();
     String[] name = agent.getName().Split('\0');
     this.character = name[0];
     this.account   = name[1];
     this.group     = name[2];
     this.prof      = agent.getProf();
     this.toughness = agent.getToughness();
     this.healing   = agent.getHealing();
     this.condition = agent.getCondition();
 }
Пример #2
0
 // Constructors
 public Player(AgentItem agent) : base(agent)
 {
     String[] name = agent.getName().Split('\0');
     account = name[1];
     group   = int.Parse(name[2], NumberStyles.Integer, CultureInfo.InvariantCulture);
 }
Пример #3
0
 // Constructor
 public AbstractPlayer(AgentItem agent)
 {
     String[] name = agent.getName().Split('\0');
     character  = name[0];
     this.agent = agent;
 }