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; }
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; }
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)); }
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; }
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; }
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; }