[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/editorobjs info_box_obj.cxx,NONE,1.1
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/editorobjs info_box_obj.cxx,NONE,1.1 info_box_obj.hxx,NONE,1.1 Makefile.am,1.3,1.4 |
Date: |
14 Sep 2002 13:35:40 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/editorobjs
In directory dark:/tmp/cvs-serv823/editorobjs
Modified Files:
Makefile.am
Added Files:
info_box_obj.cxx info_box_obj.hxx
Log Message:
splitted InfoBox
--- NEW FILE: info_box_obj.cxx ---
// $Id: info_box_obj.cxx,v 1.1 2002/09/14 13:35:38 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 "../worldobjsdata/info_box_data.hxx"
#include "info_box_obj.hxx"
namespace EditorObjs {
InfoBoxObj::InfoBoxObj (WorldObjsData::InfoBoxData* data_)
: SpriteEditorObj ("InfoBoxObj", "worldobjs", &data->pos),
data(new WorldObjsData::InfoBoxData(*data_))
{
}
EditorObjLst
InfoBoxObj::create (const CL_Vector& pos)
{
WorldObjsData::InfoBoxData newdata;
newdata.pos = pos;
return EditorObjLst(1, new InfoBoxObj(&newdata));
}
void
InfoBoxObj::write_xml (std::ostream& xml)
{
data->write_xml(xml);
}
EditorObj*
InfoBoxObj::duplicate ()
{
return new InfoBoxObj(data);
}
std::string
InfoBoxObj::status_line ()
{
return "InfoBoxObj";
}
} // namespace EditorObjs
/* EOF */
--- NEW FILE: info_box_obj.hxx ---
// $Id: info_box_obj.hxx,v 1.1 2002/09/14 13:35:38 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_EDITOROBJS_INFO_BOX_OBJ_HXX
#define HEADER_PINGUS_EDITOROBJS_INFO_BOX_OBJ_HXX
#include "../editor/sprite_editorobj.hxx"
namespace WorldObjsData {
class InfoBoxData;
}
namespace EditorObjs {
class InfoBoxObj : public SpriteEditorObj
{
private:
WorldObjsData::InfoBoxData* const data;
public:
InfoBoxObj (WorldObjsData::InfoBoxData* data_);
static EditorObjLst create (const CL_Vector& pos);
void write_xml (std::ostream& xml);
EditorObj* duplicate ();
std::string status_line ();
private:
InfoBoxObj (const InfoBoxObj&);
InfoBoxObj operator= (const InfoBoxObj&);
};
} // namespace EditorObjs
#endif
/* EOF */
Index: Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editorobjs/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Makefile.am 11 Sep 2002 15:27:19 -0000 1.3
+++ Makefile.am 14 Sep 2002 13:35:38 -0000 1.4
@@ -22,6 +22,7 @@
fake_exit_obj.cxx fake_exit_obj.hxx \
guillotine_obj.cxx guillotine_obj.hxx \
hammer_obj.cxx hammer_obj.hxx \
+ info_box_obj.cxx info_box_obj.hxx \
laser_exit_obj.cxx laser_exit_obj.hxx \
smasher_obj.cxx smasher_obj.hxx \
spike_obj.cxx spike_obj.hxx \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/editorobjs info_box_obj.cxx,NONE,1.1 info_box_obj.hxx,NONE,1.1 Makefile.am,1.3,1.4,
torangan <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src worldobj_data_factory.cxx,1.8,1.9
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/worldobjs info_box.cxx,1.11,1.12 info_box.hxx,1.9,1.10
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src worldobj_data_factory.cxx,1.8,1.9
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/worldobjs info_box.cxx,1.11,1.12 info_box.hxx,1.9,1.10
- Index(es):