[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/worldobjs hotspot.cxx,NONE,1.1 hotspo
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/worldobjs hotspot.cxx,NONE,1.1 hotspot.hxx,NONE,1.1 |
Date: |
24 Sep 2002 09:27:52 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/worldobjs
In directory dark:/tmp/cvs-serv19793
Added Files:
hotspot.cxx hotspot.hxx
Log Message:
added missing files
--- NEW FILE: hotspot.cxx ---
// $Id: hotspot.cxx,v 1.1 2002/09/24 09:27:48 torangan Exp $
//
// Pingus - A free Lemmings clone
// Copyright (C) 1999 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/hotspot_data.hxx"
#include "../globals.hxx"
#include "../graphic_context.hxx"
#include "hotspot.hxx"
namespace WorldObjs {
Hotspot::Hotspot (WorldObjsData::HotspotData* data_)
: sprite(data->desc),
data(new WorldObjsData::HotspotData(*data_))
{
if (verbose > 2)
std::cout << "Creating Hotspot" << std::endl;
}
Hotspot::~Hotspot ()
{
delete data;
}
void
Hotspot::draw (GraphicContext& gc)
{
// FIXME: para support doesnn't work correctly
gc.draw (sprite, data->pos);
}
float
Hotspot::get_z_pos () const
{
return data->pos.z;
}
} // namespace WorldObjs
/* EOF */
--- NEW FILE: hotspot.hxx ---
// $Id: hotspot.hxx,v 1.1 2002/09/24 09:27:48 torangan Exp $
//
// Pingus - A free Lemmings clone
// Copyright (C) 1999 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_WORLDOBJS_HOTSPOT_HXX
#define HEADER_PINGUS_WORLDOBJS_HOTSPOT_HXX
#include "../worldobj.hxx"
#include "../sprite.hxx"
namespace WorldObjsData {
class HotspotData;
}
namespace WorldObjs {
class Hotspot : public WorldObj
{
private:
Sprite sprite;
WorldObjsData::HotspotData* const data;
public:
Hotspot (WorldObjsData::HotspotData* data_);
~Hotspot ();
void draw (GraphicContext& gc);
float get_z_pos () const;
private:
Hotspot (const Hotspot&);
Hotspot operator= (const Hotspot&);
};
} // namespace WorldObjs
#endif
/* EOF */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/worldobjs hotspot.cxx,NONE,1.1 hotspot.hxx,NONE,1.1,
torangan <=