Last change
on this file since 10054 was
10054,
checked in by patrick, 17 years ago
|
further implementation of the oif modules, resource schlacht
|
File size:
1.4 KB
|
Rev | Line | |
---|
[10050] | 1 | /* |
---|
| 2 | orxonox - the future of 3D-vertical-scrollers |
---|
| 3 | |
---|
| 4 | Copyright (C) 2004 orx |
---|
| 5 | |
---|
| 6 | This program is free software; you can redistribute it and/or modify |
---|
| 7 | it under the terms of the GNU General Public License as published by |
---|
| 8 | the Free Software Foundation; either version 2, or (at your option) |
---|
| 9 | any later version. |
---|
| 10 | |
---|
| 11 | ### File Specific: |
---|
| 12 | main-programmer: Patrick Boenzli patrick@orxonox.net |
---|
| 13 | co-programmer: ... |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ |
---|
| 17 | |
---|
| 18 | #include "object_information_file.h" |
---|
| 19 | |
---|
[10051] | 20 | #include "resource_oif.h" |
---|
[10050] | 21 | |
---|
| 22 | |
---|
[10052] | 23 | |
---|
[10050] | 24 | /** |
---|
| 25 | * standard constructor |
---|
[10052] | 26 | */ |
---|
| 27 | ObjectInformationFile::ObjectInformationFile() |
---|
| 28 | { |
---|
[10053] | 29 | this->init(); |
---|
[10052] | 30 | } |
---|
| 31 | |
---|
| 32 | /** |
---|
[10054] | 33 | * constructor |
---|
| 34 | * @param fileName name of the file |
---|
| 35 | */ |
---|
[10052] | 36 | ObjectInformationFile::ObjectInformationFile(const std::string& fileName) |
---|
[10054] | 37 | : data(new OIFData()) |
---|
[10050] | 38 | { |
---|
[10052] | 39 | // load the oif file |
---|
| 40 | this->data = ResourceOIF(fileName).data; |
---|
[10051] | 41 | |
---|
[10054] | 42 | this->init(); |
---|
[10050] | 43 | } |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | /** |
---|
[10054] | 47 | * copy constructor |
---|
| 48 | * @param oif instance to copy from |
---|
| 49 | */ |
---|
| 50 | ObjectInformationFile::ObjectInformationFile(const ObjectInformationFile& oif) |
---|
| 51 | :data(oif.data) |
---|
| 52 | { |
---|
| 53 | this->init(); |
---|
| 54 | } |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | /** |
---|
[10053] | 58 | * initizlizing function |
---|
| 59 | */ |
---|
| 60 | void ObjectInformationFile::init() |
---|
| 61 | { |
---|
| 62 | |
---|
| 63 | } |
---|
| 64 | |
---|
| 65 | |
---|
| 66 | /** |
---|
[10050] | 67 | * standard deconstructor |
---|
| 68 | */ |
---|
| 69 | ObjectInformationFile::~ObjectInformationFile () |
---|
| 70 | { |
---|
| 71 | // delete what has to be deleted here |
---|
| 72 | } |
---|
[10054] | 73 | |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | ObjectInformationFile& ObjectInformationFile::operator=(const ObjectInformationFile& oif) |
---|
| 77 | { |
---|
| 78 | this->data = oif.data; |
---|
| 79 | return *this; |
---|
| 80 | } |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | |
---|
Note: See
TracBrowser
for help on using the repository browser.