summaryrefslogtreecommitdiffstats
path: root/knights/io_base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knights/io_base.cpp')
-rw-r--r--knights/io_base.cpp57
1 files changed, 57 insertions, 0 deletions
diff --git a/knights/io_base.cpp b/knights/io_base.cpp
new file mode 100644
index 0000000..db62330
--- /dev/null
+++ b/knights/io_base.cpp
@@ -0,0 +1,57 @@
+/***************************************************************************
+ io_base.cpp - description
+ -------------------
+ begin : Tue Jun 18 2002
+ copyright : (C) 2003 by Troy Corbin Jr.
+ email : tcorbin@users.sf.net
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#include "io_base.moc"
+
+io_base::io_base(resource *resc)
+{
+ this->myResource = resc;
+}
+
+io_base::io_base(resource *resc, int ID)
+{
+ this->myResource = resc;
+ this->myID = ID;
+}
+
+io_base::io_base(QWidget* parent, resource *rsrc)
+{
+ this->myParent = parent;
+ this->myResource = rsrc;
+}
+
+io_base::~io_base()
+{
+
+}
+
+void io_base::setID(const int ID)
+{
+ this->myID = ID;
+}
+
+int io_base::getID()
+{
+ return myID;
+}
+
+int io_base::getType()
+{
+ return myType;
+}
+
+