Пример #1
0
        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();
        }
Пример #2
0
        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);
        }
Пример #3
0
        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();
        }