// 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(); }
// 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); }
// Constructor public AbstractPlayer(AgentItem agent) { String[] name = agent.getName().Split('\0'); character = name[0]; this.agent = agent; }