summaryrefslogtreecommitdiff
path: root/Aktywator/Tournament.cs
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-07-30 01:44:48 +0200
committeremkael <emkael@tlen.pl>2017-07-30 01:44:48 +0200
commitcfe97d223573c4792e5d42a4443c139fd8c87381 (patch)
treefc40d2ec06d712c4fbf6832ad894ab120a330402 /Aktywator/Tournament.cs
parentf14238e95bf1a10789585bf7632c5506daecc630 (diff)
Refactoring MySQL tournament names: generalization
Diffstat (limited to 'Aktywator/Tournament.cs')
-rw-r--r--Aktywator/Tournament.cs36
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();
+
+ }
+}