[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/worldobjsdata thunderstorm_background
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/worldobjsdata thunderstorm_background_data.cxx,NONE,1.1 thunderstorm_background_data.hxx,NONE,1.1 Makefile.am,1.11,1.12 |
Date: |
18 Sep 2002 15:00:39 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/worldobjsdata
In directory dark:/tmp/cvs-serv16342/worldobjsdata
Modified Files:
Makefile.am
Added Files:
thunderstorm_background_data.cxx
thunderstorm_background_data.hxx
Log Message:
removed last background
--- NEW FILE: thunderstorm_background_data.cxx ---
// $Id: thunderstorm_background_data.cxx,v 1.1 2002/09/18 15:00:37 torangan
Exp $
//
// Pingus - A free Lemmings clone
// Copyright (C) 2000 Ingo Ruhnke <address@hidden>
//
// 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.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <ostream>
#include "../xml_helper.hxx"
#include "../editorobjs/thunderstorm_background_obj.hxx"
#include "../worldobjs/thunderstorm_background.hxx"
#include "thunderstorm_background_data.hxx"
namespace WorldObjsData {
void
ThunderstormBackgroundData::write_xml (std::ostream& xml)
{
xml << "<background type=\"thunderstorm\">\n"
<< "</background>" << std::endl;
}
ThunderstormBackgroundData::ThunderstormBackgroundData (const
ThunderstormBackgroundData& old)
: WorldObjData(old),
pos(old.pos)
{
}
ThunderstormBackgroundData::ThunderstormBackgroundData (xmlDocPtr doc,
xmlNodePtr cur)
{
cur = cur->children;
while (cur)
{
if (xmlIsBlankNode(cur)) {
cur = cur->next;
continue;
}
if (XMLhelper::equal_str(cur->name, "position")) {
pos = XMLhelper::parse_vector (doc, cur);
} else {
std::cout << "ThunderstormBackgroundData::create(xmlDocPtr doc,
xmlNodePtr cur) error" << std::endl;
}
}
}
WorldObj*
ThunderstormBackgroundData::create_WorldObj ()
{
return new WorldObjs::ThunderstormBackground(this);
}
EditorObjLst
ThunderstormBackgroundData::create_EditorObj ()
{
return EditorObjLst(1, new EditorObjs::ThunderstormBackgroundObj(this));
}
} // namespace WorldObjsData
/* EOF */
--- NEW FILE: thunderstorm_background_data.hxx ---
// $Id: thunderstorm_background_data.hxx,v 1.1 2002/09/18 15:00:37 torangan
Exp $
//
// Pingus - A free Lemmings clone
// Copyright (C) 2000 Ingo Ruhnke <address@hidden>
//
// 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.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef HEADER_PINGUS_WORLDOBJSDATA_THUNDERSTORM_BACKGROUND_DATA_HXX
#define HEADER_PINGUS_WORLDOBJSDATA_THUNDERSTORM_BACKGROUND_DATA_HXX
#include <ClanLib/Core/Math/cl_vector.h>
#include "../worldobj_data.hxx"
#include "../libxmlfwd.hxx"
namespace WorldObjsData {
class ThunderstormBackgroundData : public WorldObjData
{
public:
CL_Vector pos;
public:
ThunderstormBackgroundData () {}
ThunderstormBackgroundData (xmlDocPtr doc, xmlNodePtr cur);
ThunderstormBackgroundData (const ThunderstormBackgroundData& old);
/** Writte the content of this object formated as xml to the given
stream */
virtual void write_xml (std::ostream& xml);
WorldObj* create_WorldObj ();
EditorObjLst create_EditorObj ();
private:
ThunderstormBackgroundData operator= (const ThunderstormBackgroundData&);
};
} // namespace WorldObjsData
#endif
/* EOF */
Index: Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/worldobjsdata/Makefile.am,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- Makefile.am 16 Sep 2002 20:52:22 -0000 1.11
+++ Makefile.am 18 Sep 2002 15:00:37 -0000 1.12
@@ -18,25 +18,26 @@
noinst_LIBRARIES = libpingus_worldobjsdata.a
libpingus_worldobjsdata_a_SOURCES = \
- bumper_data.cxx bumper_data.hxx \
- conveyor_belt_data.cxx conveyor_belt_data.hxx \
- fake_exit_data.cxx fake_exit_data.hxx \
- groundpiece_data.hxx groundpiece_data.cxx \
- guillotine_data.cxx guillotine_data.hxx \
- hammer_data.cxx hammer_data.hxx \
- ice_block_data.cxx ice_block_data.hxx \
- info_box_data.cxx info_box_data.hxx \
- laser_exit_data.cxx laser_exit_data.hxx \
- prefab_obj_data.cxx prefab_obj_data.hxx \
- smasher_data.cxx smasher_data.hxx \
- solid_color_background_data.cxx solid_color_background_data.hxx \
- spike_data.cxx spike_data.hxx \
- starfield_background_data.cxx starfield_background_data.hxx \
- surface_background_data.cxx surface_background_data.hxx \
- switch_door_data.cxx switch_door_data.hxx \
- teleporter_data.cxx teleporter_data.hxx \
- worldobj_group_data.hxx worldobj_group_data.cxx \
- snow_generator_data.hxx snow_generator_data.cxx \
- rain_generator_data.hxx rain_generator_data.cxx
+ bumper_data.cxx bumper_data.hxx \
+ conveyor_belt_data.cxx conveyor_belt_data.hxx \
+ fake_exit_data.cxx fake_exit_data.hxx \
+ groundpiece_data.hxx groundpiece_data.cxx \
+ guillotine_data.cxx guillotine_data.hxx \
+ hammer_data.cxx hammer_data.hxx \
+ ice_block_data.cxx ice_block_data.hxx \
+ info_box_data.cxx info_box_data.hxx \
+ laser_exit_data.cxx laser_exit_data.hxx \
+ prefab_obj_data.cxx prefab_obj_data.hxx \
+ rain_generator_data.hxx rain_generator_data.cxx \
+ smasher_data.cxx smasher_data.hxx \
+ snow_generator_data.hxx snow_generator_data.cxx \
+ solid_color_background_data.cxx solid_color_background_data.hxx \
+ spike_data.cxx spike_data.hxx \
+ starfield_background_data.cxx starfield_background_data.hxx \
+ surface_background_data.cxx surface_background_data.hxx \
+ switch_door_data.cxx switch_door_data.hxx \
+ teleporter_data.cxx teleporter_data.hxx \
+ thunderstorm_background_data.cxx thunderstorm_background_data.hxx \
+ worldobj_group_data.hxx worldobj_group_data.cxx
# EOF #
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/worldobjsdata thunderstorm_background_data.cxx,NONE,1.1 thunderstorm_background_data.hxx,NONE,1.1 Makefile.am,1.11,1.12,
torangan <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/editor object_selector.cxx,1.22,1.23
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/editorobjs thunderstorm_background_obj.cxx,NONE,1.1 thunderstorm_background_obj.hxx,NONE,1.1 Makefile.am,1.8,1.9
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/editor object_selector.cxx,1.22,1.23
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/editorobjs thunderstorm_background_obj.cxx,NONE,1.1 thunderstorm_background_obj.hxx,NONE,1.1 Makefile.am,1.8,1.9
- Index(es):