diff options
author | emkael <emkael@tlen.pl> | 2017-07-30 01:44:48 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-07-30 01:44:48 +0200 |
commit | cfe97d223573c4792e5d42a4443c139fd8c87381 (patch) | |
tree | fc40d2ec06d712c4fbf6832ad894ab120a330402 /Aktywator/Tournament.cs | |
parent | f14238e95bf1a10789585bf7632c5506daecc630 (diff) |
Refactoring MySQL tournament names: generalization
Diffstat (limited to 'Aktywator/Tournament.cs')
-rw-r--r-- | Aktywator/Tournament.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Aktywator/Tournament.cs b/Aktywator/Tournament.cs new file mode 100644 index 0000000..fdeb323 --- /dev/null +++ b/Aktywator/Tournament.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace Aktywator +{ + abstract public class Tournament + { + public const int TYPE_PARY = 1; + public const int TYPE_TEAMY = 2; + public const int TYPE_UNKNOWN = 0; + + protected string _name; + public string name + { + get { return _name; } + } + + protected int _type; // 0-unknown, 1-Pary, 2-Teamy + public int type + { + get { return _type; } + } + + abstract internal void setup(); + + abstract internal string getName(); + + abstract public string getSectionsNum(); + + abstract public string getTablesNum(); + + abstract internal string getTypeLabel(); + + } +} |