This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Shoot(Player player) {} | |
public string FindByIndex(int number) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Switcher | |
{ | |
private bool _enable; | |
public void Enable() | |
{ | |
_effects.StartEnableAnimation(); | |
} | |
public void Disable() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace IMJunior | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
PaymentBase paymentBase = new PaymentBase(); | |
OrderForm orderForm = new OrderForm(paymentBase); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text; | |
using System.Data.SQLite; | |
static void Main(string[] args) | |
{ | |
} | |
class Model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Player | |
{ | |
readonly Weapon _weapon; | |
readonly Movement _movement; | |
public Player(string name, int age) | |
{ | |
Name = name; | |
Age = age; | |
_weapon = new Weapon(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void CreateObject() | |
{ | |
//Создание объекта на карте | |
} | |
public static void GenerateChance() | |
{ | |
_chance = Random.Range(0, 100); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Player { } | |
class Gun { } | |
class TargetStalker { } | |
class UnitProvider | |
{ | |
public IReadOnlyCollection<Unit> UnitsToGet {get; private set;} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Weapon | |
{ | |
public void Shoot() { } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int armySize = 10; | |
int coins = 10; | |
string name = "Vladislav"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Weapon | |
{ | |
private int _bullets; | |
private const int _zeroBullets = 0; | |
private const int _bulletShot = 1; | |
public bool CanShoot => _bulletShot <= _bullets; | |
public void Shoot() | |
{ |
NewerOlder