Esempio n. 1
0
        public Core(byte faction, float xPos, float zPos)
        {
            ushort objID = ObjIDGenerator.GenerateID(ObjIDGenerator.ObjType.Core);

            init = new CoreInitialData(faction, xPos, zPos);
            sync = new CoreSyncData(objID, maxhp, new BuffDebuff(0), new EnemyVision(false));

            radius = 1.0f;
        }
Esempio n. 2
0
        public Tower(byte faction, float xPos, float zPos)
        {
            ushort objID = ObjIDGenerator.GenerateID(ObjIDGenerator.ObjType.Tower);

            init = new TowerInitialData(faction, xPos, zPos);
            sync = new TowerSyncData(objID, maxhp, new BuffDebuff(0), new EnemyVision(false));

            radius = 0.5f;
        }
Esempio n. 3
0
        public Ability(Hero caster, byte abilityID, float lifeTimer, float xPos, float zPos, float yRot, float wRot)
        {
            this.caster    = caster;
            this.lifeTimer = lifeTimer;

            ushort objID = ObjIDGenerator.GenerateID(ObjIDGenerator.ObjType.Ability);

            init = null;
            sync = new AbilitySyncData(objID, abilityID, caster.GetObjID(), caster.GetFaction(), xPos, zPos, yRot, wRot, 0, new EnemyVision(false));
        }
Esempio n. 4
0
        public Minion(byte faction, float xPos, float zPos, float yRot, float wRot, List <Vector2> relayPoints)
        {
            ushort objID = ObjIDGenerator.GenerateID(ObjIDGenerator.ObjType.Minion);

            init = null;
            sync = new MinionSyncData(objID, maxhp, faction, xPos, zPos, yRot, wRot, 1, new BuffDebuff(0), new EnemyVision(false));

            radius = 0.3f;

            this.relayPoints = relayPoints;
        }
Esempio n. 5
0
        public Monster(float xPos, float zPos, float yRot, float wRot)
        {
            ushort objID = ObjIDGenerator.GenerateID(ObjIDGenerator.ObjType.Monster);

            init = null;
            sync = new MonsterSyncData(objID, maxhp, xPos, zPos, yRot, wRot, 0, new BuffDebuff(0));

            radius = 0.5f;

            init_yRot = yRot;
            init_wRot = wRot;
        }
Esempio n. 6
0
        public Hero(byte faction, byte heroID, ushort hp, ushort mp, float xPos, float zPos, float yRot, float wRot)
        {
            ushort objID = ObjIDGenerator.GenerateID(ObjIDGenerator.ObjType.Hero);

            //debug
            if (objID % 2 == 0)
            {
                faction = 0;
                xPos    = -48.0f;
                zPos    = -48.0f;
            }
            else
            {
                faction = 1;
                xPos    = 48.0f;
                zPos    = 48.0f;
            }

            init = new HeroInitialData(faction, heroID);
            sync = new HeroSyncData(objID, hp, mp, xPos, zPos, yRot, wRot, 0, 1, 0, new Items(), new BuffDebuff(0), new EnemyVision(false));
            pool = new ExpPool((HeroSyncData)sync);

            radius = 0.3f;
        }