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.
32 lines
664 B
32 lines
664 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 Card(int value)
|
|
{
|
|
Value = value;
|
|
}
|
|
|
|
}
|
|
}
|