private RobotAnimation CreateDummyRobot() { ComboWeapon DummyWeapon = new ComboWeapon(5, false, 1); RobotAnimation NewRobotAnimation = new RobotAnimation(DummyMap.ListLayer[0], Vector2.Zero, 0, new List <WeaponBase>() { DummyWeapon }); NewRobotAnimation.MaxHP = 100; NewRobotAnimation.MaxEN = 50; return(NewRobotAnimation); }
public void ExecuteOnMainThread() { RobotAnimation ActivePlayer = Owner.TripleThunderGame.ListLayer[LayerIndex].DicRobot[OwnerID]; WeaponBase ActiveWeapon = ActivePlayer.PrimaryWeapons.GetWeapon(WeaponName); foreach (Vector2 ActiveSpeed in ListSpeed) { float Angle = (float)Math.Atan2(ActiveSpeed.Y, ActiveSpeed.X); ActivePlayer.SetRobotContext(ActiveWeapon, Angle, GunNozzlePosition); if (ActiveWeapon.HasSkills) { ActiveWeapon.UpdateSkills("Shoot"); } else { ActiveWeapon.Shoot(ActivePlayer, GunNozzlePosition, Angle, new List <BaseAutomaticSkill>()); } } }
public void ExecuteOnMainThread() { if (!Owner.TripleThunderGame.IsMainCharacter(PlayerID)) { Layer ActiveLayer = Owner.TripleThunderGame.ListLayer[LayerIndex]; RobotAnimation ActivePlayer = ActiveLayer.DicRobot[PlayerID]; ActivePlayer.Position = new Microsoft.Xna.Framework.Vector2(PositionX, PositionY); ActivePlayer.Speed = new Microsoft.Xna.Framework.Vector2(SpeedX, SpeedY); if (ActivePlayer.ActiveMovementStance != ActiveMovementStance) { ActivePlayer.SetRobotAnimation(ActiveMovementStance); } for (int W = 0; W < WeaponCount; W++) { ActivePlayer.PrimaryWeapons.ActiveWeapons[W].WeaponAngle = ListWeaponAngle[W]; ActivePlayer.UpdatePrimaryWeaponAngle(ListWeaponAngle[W], W); } } }
// Start is called before the first frame update void Start() { robotAnimation = GetComponent <RobotAnimation>(); }
public SendPlayerUpdateScriptClient(RobotAnimation ActivePlayer) : base(ScriptName) { this.ActivePlayer = ActivePlayer; }
public ArmorBase(RobotAnimation Owner, int DamageReductionPercent) : base(Owner) { this.DamageReductionPercent = DamageReductionPercent; }
public JetpackBase(RobotAnimation Owner, int JetpackFuelMax) : base(Owner) { JetpackFuel = JetpackFuelMax; this.JetpackFuelMax = JetpackFuelMax; }
public InvisibleFireball(float Damage, Weapon.ExplosionOptions ExplosionAttributes, RobotAnimation Owner, Vector2 Position, float Angle, MagicUserParams MagicParams, IMagicUser Parent) : base(Damage, ExplosionAttributes, Owner, Position, Angle) { this.MagicParams = MagicParams; this.Parent = Parent; MagicParams.SetMagicUser(Parent); }
/// <summary> /// Used to send messages /// </summary> /// <param name="LayerIndex"></param> /// <param name="ActiveRobot"></param> public SendPlayerUpdateScriptServer(int LayerIndex, RobotAnimation ActiveRobot) : base(ScriptName) { this.LayerIndex = LayerIndex; this.ActiveRobot = ActiveRobot; }