summaryrefslogtreecommitdiffstats
path: root/knights/io_base.cpp
blob: c5f625ad8540e90438288bacdcb190feb25e5773 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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(TQWidget* 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;
}