/* orxonox - the future of 3D-vertical-scrollers Copyright (C) 2004 orx 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, or (at your option) any later version. ### File Specific: main-programmer: ... co-programmer: ... */ //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ #include "multi_type.h" #include "stdincl.h" using namespace std; MultiType::MultiType(int value) { this->type = M_Int; this->value.typeInt = value; } MultiType::MultiType(float value) { this->type = M_Float; this->value.typeFloat = value; } MultiType::MultiType(char value) { this->type = M_Char; this->value.typeChar = value; } MultiType::MultiType(const char* value) { this->type = M_String; this->value.typeString = new char[strlen(value)+1]; strcpy(this->value.typeString, value); } /** * standard deconstructor */ MultiType::~MultiType () { // delete what has to be deleted here }