You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
711 B

using System;
using System.ComponentModel;
namespace TheGameExtreme.model.card
{
public abstract class Card : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
private int value;
public int Value
{
get { return value; }
set {
this.value = value;
OnPropertyChange("Value");
}
}
private void OnPropertyChange(string v)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(v));
}
public static readonly bool activate;
public Card(int value)
{
Value = value;
}
}
}