public override void Deserialize(GenericReader reader) { RegistroModule.registrarModuleJogador(this); sistemaTalento = new SistemaTalento(this); sistemaClasse = new SistemaClasse(this); sistemaPropriedade = new SistemaPropriedade(this); sistemaAventura = new SistemaAventura(this); sistemaMorte = new SistemaMorte(this); sistemaRaca = new SistemaRaca(this); // a inicializacao dos sistemas devem ficar antes deste método. Pois ele invoca métodos como max hits quqe utiliza os sistemas. base.Deserialize(reader); int versao = reader.ReadInt(); }
private static void EventSink_Login(LoginEventArgs args) { int userCount = NetState.Instances.Count; int itemCount = World.Items.Count; int mobileCount = World.Mobiles.Count; Mobile m = args.Mobile; m.SendMessage("Bem-vindo, {0}! Existem {1} jogadores online, {2} itens e {3} contas no mundo de Kaltar.", args.Mobile.Name, userCount, itemCount, mobileCount); //registra os modulos que todo jogador deve possuir RegistroModule.registrarModuleJogador((Jogador)m); }
public Jogador() { sistemaClasse = new SistemaClasse(this); sistemaTalento = new SistemaTalento(this); sistemaPropriedade = new SistemaPropriedade(this); sistemaAventura = new SistemaAventura(this); sistemaMorte = new SistemaMorte(this); sistemaRaca = new SistemaRaca(this); RegistroModule.registrarModuleJogador(this); setClasse = classe.Aldeao; //maximo de status StatCap = getSistemaRaca().StatusCap; inicializarAtributos(); }