3 * ***** BEGIN GPL LICENSE BLOCK *****
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
20 * All rights reserved.
22 * The Original Code is: all of this file.
24 * Contributor(s): none yet.
26 * ***** END GPL LICENSE BLOCK *****
29 /** \file gameengine/SceneGraph/SG_IObject.cpp
34 #include "SG_IObject.h"
35 #include "SG_Controller.h"
37 SG_Stage gSG_Stage = SG_STAGE_UNKNOWN;
43 SG_Callbacks& callbacks
46 m_SGclientObject(clientobj),
47 m_SGclientInfo(clientinfo)
49 m_callbacks = callbacks;
54 const SG_IObject &other
57 m_SGclientObject(other.m_SGclientObject),
58 m_SGclientInfo(other.m_SGclientInfo),
59 m_callbacks(other.m_callbacks)
69 m_SGcontrollers.push_back(cont);
76 m_SGcontrollers.clear();
79 void SG_IObject::SetControllerTime(double time)
81 SGControllerList::iterator contit;
82 for (contit = m_SGcontrollers.begin();contit!=m_SGcontrollers.end();++contit)
84 (*contit)->SetSimulatedTime(time);
88 /// Needed for replication
94 SGControllerList::iterator contit;
96 for (contit = m_SGcontrollers.begin();contit!=m_SGcontrollers.end();++contit)