[10050] | 1 | |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | orxonox - the future of 3D-vertical-scrollers |
---|
| 5 | |
---|
| 6 | Copyright (C) 2004 orx |
---|
| 7 | |
---|
| 8 | This program is free software; you can redistribute it and/or modify |
---|
| 9 | it under the terms of the GNU General Public License as published by |
---|
| 10 | the Free Software Foundation; either version 2, or (at your option) |
---|
| 11 | any later version. |
---|
| 12 | |
---|
| 13 | ### File Specific |
---|
| 14 | main-programmer: |
---|
| 15 | co-programmer: |
---|
| 16 | */ |
---|
| 17 | #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | #include "executor/executor.h" |
---|
| 21 | #include "util/loading/factory.h" |
---|
| 22 | #include "util/loading/load_param.h" |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | #include "mount_point.h" |
---|
| 26 | #include "debug.h" |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | #include "state.h" |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | #include "class_id_DEPRECATED.h" |
---|
| 36 | ObjectListDefinition(MountPoint); |
---|
| 37 | CREATE_FACTORY(MountPoint); |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | /** |
---|
| 42 | * construct |
---|
| 43 | */ |
---|
| 44 | MountPoint::MountPoint () |
---|
| 45 | { |
---|
| 46 | this->init(); |
---|
| 47 | } |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | /** |
---|
| 51 | * constructor |
---|
| 52 | * @param root the xml root element |
---|
| 53 | */ |
---|
| 54 | MountPoint::MountPoint(const TiXmlElement* root) |
---|
| 55 | { |
---|
| 56 | this->init(); |
---|
| 57 | |
---|
| 58 | if( root != NULL) |
---|
| 59 | this->loadParams(root); |
---|
| 60 | } |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | /** |
---|
| 64 | * deconstructor |
---|
| 65 | */ |
---|
| 66 | MountPoint::~MountPoint () |
---|
| 67 | {} |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | /** |
---|
| 71 | * initializing function |
---|
| 72 | */ |
---|
| 73 | void MountPoint::init() |
---|
| 74 | { |
---|
| 75 | this->registerObject(this, MountPoint::_objectList); |
---|
| 76 | this->toList(OM_GROUP_00); |
---|
| 77 | } |
---|
| 78 | |
---|
| 79 | |
---|
| 80 | /** |
---|
| 81 | * loads the Settings of a MD2Creature from an XML-element. |
---|
| 82 | * @param root the XML-element to load the MD2Creature's properties from |
---|
| 83 | */ |
---|
| 84 | void MountPoint::loadParams(const TiXmlElement* root) |
---|
| 85 | { |
---|
| 86 | WorldEntity::loadParams(root); |
---|
| 87 | } |
---|
| 88 | |
---|
| 89 | |
---|
| 90 | |
---|
| 91 | /** |
---|
| 92 | * tick |
---|
| 93 | * @param time time passed since the last tick |
---|
| 94 | */ |
---|
| 95 | void MountPoint::tick (float time) |
---|
| 96 | { |
---|
| 97 | |
---|
| 98 | |
---|
| 99 | } |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | /** |
---|
| 103 | * draw this entity |
---|
| 104 | */ |
---|
| 105 | void MountPoint::draw() const |
---|
| 106 | { |
---|
| 107 | |
---|
| 108 | } |
---|
| 109 | |
---|
| 110 | |
---|
| 111 | |
---|
| 112 | /** |
---|
| 113 | * function called to draw the mount point itself for debug purposes only |
---|
| 114 | */ |
---|
| 115 | void MountPoint::debugDraw() const |
---|
| 116 | { |
---|
| 117 | |
---|
| 118 | } |
---|