Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mishina_Violetta_Aleksandrovna #20

Open
wants to merge 12 commits into
base: Mishina_Violetta_Aleksandrovna
Choose a base branch
from
Prev Previous commit
залила нормально :(
Violettam88 committed Jan 13, 2023
commit 7dd245514f6cd3ffcd1e9babfb96ee9bdd2470d0
9 changes: 3 additions & 6 deletions CourseApp/Program.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
namespace CourseApp.Task_two
namespace CourseApp
{
public class Program
{
public static void Main(string[] args)
{
England test = new England();
test.Info();
test.ChangeArea();
test.ChangePopulation();
Game.Play();
}
}
}
}
58 changes: 29 additions & 29 deletions saga/Archer (2).cs → CourseApp/Saga/Archer.cs
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
namespace CourseApp
{
using System;
public class Archer : Player
{
public Archer(int health, int strength, string name)
: base(health, strength, name, "Cтрелы любви")
{
}
public override string ToString()
{
return "(Лучница) " + Name;
}
public override string Ability()
{
if (AbilityLeft > 0)
{
AbilityLeft--;
return AbilityName;
}
else
{
return "нанесла урон";
}
}
}
namespace CourseApp
{
using System;

public class Archer : Player
{
public Archer(int health, int strength, string name)
: base(health, strength, name, "Cтрелы любви")
{
}

public override string ToString()
{
return "(Лучница) " + Name;
}

public override string Ability()
{
if (AbilityLeft > 0)
{
AbilityLeft--;
return AbilityName;
}
else
{
return "нанесла урон";
}
}
}
}
Loading