[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/worldobjsdata rain_generator_data.cxx
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/worldobjsdata rain_generator_data.cxx,NONE,1.1 rain_generator_data.hxx,NONE,1.1 snow_generator_data.cxx,NONE,1.1 snow_generator_data.hxx,NONE,1.1 Makefile.am,1.8,1.9 |
Date: |
16 Sep 2002 15:47:38 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/worldobjsdata
In directory dark:/tmp/cvs-serv30898/src/worldobjsdata
Modified Files:
Makefile.am
Added Files:
rain_generator_data.cxx rain_generator_data.hxx
snow_generator_data.cxx snow_generator_data.hxx
Log Message:
- made weather thingies real worldobjs
--- NEW FILE: rain_generator_data.cxx ---
// $Id: rain_generator_data.cxx,v 1.1 2002/09/16 15:47:35 grumbel Exp $
//
// Pingus - A free Lemmings clone
// Copyright (C) 2002 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 <fstream>
#include "../worldobjs/rain_generator.hxx"
#include "rain_generator_data.hxx"
namespace WorldObjsData {
void
RainGeneratorData::write_xml(std::ostream& xml)
{
xml << "<worldobj type=\"rain-generator\"/>" << std::endl;
}
WorldObj*
RainGeneratorData::create_WorldObj ()
{
return new RainGenerator();
}
EditorObjLst
RainGeneratorData::create_EditorObj ()
{
return EditorObjLst();
}
} // namespace WorldObjsData
/* EOF */
--- NEW FILE: rain_generator_data.hxx ---
// $Id: rain_generator_data.hxx,v 1.1 2002/09/16 15:47:36 grumbel Exp $
//
// Pingus - A free Lemmings clone
// Copyright (C) 2002 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_RAIN_GENERATOR_DATA_HXX
#define HEADER_PINGUS_RAIN_GENERATOR_DATA_HXX
#include "../libxmlfwd.hxx"
#include "../worldobj_data.hxx"
namespace WorldObjsData {
/** */
class RainGeneratorData : public WorldObjData
{
private:
public:
RainGeneratorData(xmlDocPtr doc, xmlNodePtr cur) {}
WorldObj* create_WorldObj ();
EditorObjLst create_EditorObj ();
void write_xml(std::ostream& xml);
private:
RainGeneratorData (const RainGeneratorData&);
RainGeneratorData operator= (const RainGeneratorData&);
};
} // namespace WorldObjsData
#endif
/* EOF */
--- NEW FILE: snow_generator_data.cxx ---
// $Id: snow_generator_data.cxx,v 1.1 2002/09/16 15:47:36 grumbel Exp $
//
// Pingus - A free Lemmings clone
// Copyright (C) 2002 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 <fstream>
#include "../worldobjs/snow_generator.hxx"
#include "snow_generator_data.hxx"
namespace WorldObjsData {
void
SnowGeneratorData::write_xml(std::ostream& xml)
{
xml << "<worldobj type=\"snow-generator\"/>" << std::endl;
}
WorldObj*
SnowGeneratorData::create_WorldObj ()
{
return new SnowGenerator();
}
EditorObjLst
SnowGeneratorData::create_EditorObj ()
{
return EditorObjLst();
}
} // namespace WorldObjsData
/* EOF */
--- NEW FILE: snow_generator_data.hxx ---
// $Id: snow_generator_data.hxx,v 1.1 2002/09/16 15:47:36 grumbel Exp $
//
// Pingus - A free Lemmings clone
// Copyright (C) 2002 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_SNOW_GENERATOR_DATA_HXX
#define HEADER_PINGUS_SNOW_GENERATOR_DATA_HXX
#include "../libxmlfwd.hxx"
#include "../worldobj_data.hxx"
namespace WorldObjsData {
/** */
class SnowGeneratorData : public WorldObjData
{
private:
public:
SnowGeneratorData(xmlDocPtr doc, xmlNodePtr cur) {}
WorldObj* create_WorldObj ();
EditorObjLst create_EditorObj ();
void write_xml(std::ostream& xml);
private:
SnowGeneratorData (const SnowGeneratorData&);
SnowGeneratorData operator= (const SnowGeneratorData&);
};
} // namespace WorldObjsData
#endif
/* EOF */
Index: Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/worldobjsdata/Makefile.am,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- Makefile.am 15 Sep 2002 20:33:45 -0000 1.8
+++ Makefile.am 16 Sep 2002 15:47:35 -0000 1.9
@@ -32,6 +32,8 @@
spike_data.cxx spike_data.hxx \
switch_door_data.cxx switch_door_data.hxx \
teleporter_data.cxx teleporter_data.hxx \
- worldobj_group_data.hxx worldobj_group_data.cxx
+ worldobj_group_data.hxx worldobj_group_data.cxx \
+ snow_generator_data.hxx snow_generator_data.cxx \
+ rain_generator_data.hxx rain_generator_data.cxx
# EOF #
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/worldobjsdata rain_generator_data.cxx,NONE,1.1 rain_generator_data.hxx,NONE,1.1 snow_generator_data.cxx,NONE,1.1 snow_generator_data.hxx,NONE,1.1 Makefile.am,1.8,1.9,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/editor object_manager.cxx,1.32,1.33 object_selector.cxx,1.18,1.19 weather_obj.cxx,1.8,1.9 weather_obj.hxx,1.7,1.8
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/worldobjs rain_generator.cxx,NONE,1.1 rain_generator.hxx,NONE,1.1 snow_generator.cxx,NONE,1.1 snow_generator.hxx,NONE,1.1
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/editor object_manager.cxx,1.32,1.33 object_selector.cxx,1.18,1.19 weather_obj.cxx,1.8,1.9 weather_obj.hxx,1.7,1.8
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/worldobjs rain_generator.cxx,NONE,1.1 rain_generator.hxx,NONE,1.1 snow_generator.cxx,NONE,1.1 snow_generator.hxx,NONE,1.1
- Index(es):