class clsPlayer { // variables var $Name; var $Level; var $Class; var $Race; var $Gender; var $Guild; var $GmState; var $Location; // constructor function clsPlayer($tName,$tLevel,$tClass,$tRace,$tGender,$tGuild,$tZone,$tIsInstance,$tPosiX,$tPosiY,$tGmState) { $this->Name = $tName; $this->Level = $tLevel; $this->Class = $tClass; $this->Race = $tRace; $this->Gender = $tGender; $this->Guild = $tGuild; $this->GmState = $tGmState; $this->Location = new clsLocation($tZone,$tIsInstance,$tPosiX,$tPosiY); } }