This file contains hidden or 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 Program | |
{ | |
static void Main(string[] args) | |
{ | |
var orderForm = new OrderForm(); | |
var paymentHandler = new PaymentHandler(); | |
IPaymentSystem paymentSystem = null; | |
var systemId = orderForm.ShowForm(); |
This file contains hidden or 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 Enable() | |
{ | |
_enable = true; | |
_effects.StartEnableAnimation(); | |
} | |
public void Disable() | |
{ | |
_enable = false; | |
_pool.Free(this); |
This file contains hidden or 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 Find(int number) {} |
This file contains hidden or 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 CreateNewObject() | |
{ | |
//Создание объекта на карте | |
} | |
public static void GenerateRandomChance() | |
{ | |
_chance = Random.Range(0, 100); | |
} |
This file contains hidden or 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
private void checkButton_Click(object sender, EventArgs e) | |
{ | |
if (this.passportTextbox.Text.Trim() == "") | |
{ | |
int num1 = (int)MessageBox.Show("Введите серию и номер паспорта"); | |
} | |
else | |
{ |
This file contains hidden or 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 | |
{ | |
public string Name { get; private set; } | |
public int Age { get; private set; } | |
public void Move() | |
{ | |
//Do move | |
} |
This file contains hidden or 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 int _noneBulletsCount; | |
private int _spendingBulletsPerShot; | |
public bool CanShoot() => _bullets > _noneBulletsCount; |
This file contains hidden or 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 CoinsNumber = 10; | |
string Name = "Vladislav"; |
This file contains hidden or 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 Target { } | |
class Unit | |
{ | |
public IReadOnlyCollection<Unit> Units {get; private set;} | |
} |
This file contains hidden or 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 Gun | |
{ | |
public void Shoot() { } | |
} |
NewerOlder