static void SetTroopBaseStatistics (TroopScript troop,int baseAtk, int baseDef, int baseHitPoints, int baseSpeed, int People, int baseMovement, int BaseRange){
		troop.SetBaseAttack(baseAtk);
		troop.SetBaseDefence(baseDef);
		troop.SetBaseHitpoints(baseHitPoints);
		troop.SetBaseSpeed (baseSpeed);
		troop.SetNumber(People);
		troop.SetBaseMovement(baseMovement);
		troop.SetBaseRange(BaseRange);
	}
Esempio n. 2
0
 //CHECK THE PATHFINDER
 void AddStuffToPlayer(TroopScript player,int faction,muhClasses muhclass,Chief leader, int Attack,int Defence,int HitPoints,int Speed,int NumberOfSoldiers,  Weaponry _weapon, Armory _armor)
 {
     //	Classes ClassToSet = Classes.fromList(muhclass);
     player.Faction = faction;
     player.SetClassDONTUSETHISAREYOUSUREYOUWANTTOUSETHISYOUREALLYSHOULDNT(muhclass);
     player.SetChief(leader);
     player.SetBaseAttack(Attack);
     player.SetBaseDefence(Defence);
     player.SetBaseHitpoints(HitPoints);
     player.SetBaseSpeed(Speed);
     player.SetNumber(NumberOfSoldiers);
     player.SetWeapon(_weapon);
     player.SetArmor(_armor);
 }