static void Main(string[] args) { KyungraeWrestlingCareer kyungraeWrestling = new KyungraeWrestlingCareer(); Chris chris = new Chris(); Amanda amanda = new Amanda(); Enrique enrique = new Enrique(); Biniam biniam = new Biniam(); Karina karina = new Karina(); kyungraeWrestling.RegisterObserver(chris); kyungraeWrestling.RegisterObserver(amanda); kyungraeWrestling.RegisterObserver(enrique); kyungraeWrestling.RegisterObserver(biniam); kyungraeWrestling.RegisterObserver(karina); kyungraeWrestling.SendMatchResult(); chris.Results.ForEach(x => Console.WriteLine(x.Score)); amanda.Results.ForEach(x => Console.WriteLine(x.Score)); enrique.Results.ForEach(x => Console.WriteLine(x.Score)); biniam.Results.ForEach(x => Console.WriteLine(x.Score)); karina.Results.ForEach(x => Console.WriteLine(x.Score)); }
public AmandaJumpHold(Amanda amanda) : base(amanda) { amanda.GetNode <CollisionShape2D>("FloorReference").Disabled = true; _initVel = amanda.velocity.x; _gravity = amanda.amandaGravities[1]; //<-------------------DEBUG if (_initVel < 10) { _speedDir = 0; } }
public AmandaJumpUp(Amanda amanda) : base(amanda) { amanda.GetNode <CollisionShape2D>("FloorReference").Disabled = true; amanda.velocity.y = amanda.speed.y * amanda.timeScale; _gravity = amanda.amandaGravities[0]; //<--------------------------debug if (Input.IsActionPressed("ui_left") || Input.IsActionPressed("ui_right")) { amanda.velocity.x = amanda.speed.x * _speedDir * amanda.timeScale; } }
public override void _Ready() { control = GetNode <Label>("Control"); amanda = GetNode <Amanda>("Amanda"); ps = GetNode <PeriodicSpawner>("PeriodicSpawner"); }
public AmandaTurn(Amanda amanda) : base(amanda) { amanda.GetNode <Sprite>("Sprite").Scale *= new Vector2(-1, 1); amanda.GetNode <CollisionPolygon2D>("CollisionPolygon2D").Scale *= new Vector2(-1, 1); }
public AmandaJumpLand(Amanda amanda) : base(amanda) { _initVel = amanda.velocity.x; _gravity = amanda.amandaGravities[2]; }
public AmandaIdle(Amanda amanda) : base(amanda) { _speedDir = 0; amanda.GetNode <CollisionShape2D>("FloorReference").Disabled = false; }
public AmandaStopRun(Amanda amanda) : base(amanda) { _initVel = amanda.velocity.x; _speedDir = -_speedDir; amanda.GetNode <CollisionShape2D>("FloorReference").Disabled = false; }
public AmandaStartRun(Amanda amanda) : base(amanda) { amanda.GetNode <CollisionShape2D>("FloorReference").Disabled = false; }
public AmandaRun(Amanda amanda) : base(amanda) { _speedDir = (int)amanda.GetNode <Sprite>("Sprite").Scale.x; amanda.GetNode <CollisionShape2D>("FloorReference").Disabled = false; }
public AmandaState(Amanda amanda) { this.amanda = amanda; _speedDir = (int)amanda.GetNode <Sprite>("Sprite").Scale.x; }