More NoCopy.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5946 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-09-09 05:53:22 +00:00
parent 3e4cc2eab7
commit 64d3476067
10 changed files with 22 additions and 11 deletions

View File

@ -21,6 +21,7 @@
#define HEADER_ATTACHMENT_HPP
#include "config/stk_config.hpp"
#include "utils/no_copy.hpp"
#include "utils/random_generator.hpp"
class Kart;
@ -43,7 +44,7 @@ enum attachmentType
/**
* \ingroup items
*/
class Attachment
class Attachment: public NoCopy
{
private:
attachmentType m_type; //!< attachment type

View File

@ -21,11 +21,12 @@
#include "irrlicht.h"
#include "items/attachment.hpp"
#include "utils/no_copy.hpp"
/**
* \ingroup items
*/
class AttachmentManager
class AttachmentManager: public NoCopy
{
private:
scene::IAnimatedMesh *m_attachments[ATTACH_MAX];

View File

@ -30,6 +30,7 @@ using namespace irr;
#include "items/powerup_manager.hpp"
#include "karts/moveable.hpp"
#include "tracks/terrain_info.hpp"
#include "utils/no_copy.hpp"
class FlyableInfo;
class Kart;
@ -39,7 +40,7 @@ class XMLNode;
/**
* \ingroup items
*/
class Flyable : public Moveable, public TerrainInfo
class Flyable : public Moveable, public TerrainInfo, public NoCopy
{
public:
private:

View File

@ -28,13 +28,14 @@
using namespace irr;
#include "karts/kart.hpp"
#include "utils/no_copy.hpp"
// -----------------------------------------------------------------------------
/**
* \ingroup items
*/
class Item
class Item : public NoCopy
{
public:
/**

View File

@ -23,14 +23,16 @@
#include <vector>
#include <map>
#include "items/item.hpp"
#include "utils/no_copy.hpp"
class Kart;
/**
* \ingroup items
*/
class ItemManager
class ItemManager : public NoCopy
{
private:

View File

@ -25,6 +25,7 @@
#include "irrlicht.h"
using namespace irr;
#include "items/flyable.hpp"
class Kart;

View File

@ -23,6 +23,7 @@
#define MAX_POWERUPS 5
#include "items/powerup_manager.hpp" // needed for powerup_type
#include "utils/no_copy.hpp"
#include "utils/random_generator.hpp"
class Kart;
@ -32,7 +33,7 @@ class SFXBase;
/**
* \ingroup items
*/
class Powerup
class Powerup : public NoCopy
{
private:
/** A synchronised random number generator for network games. */

View File

@ -27,6 +27,8 @@
#include "btBulletDynamicsCommon.h"
#include "utils/no_copy.hpp"
class Material;
class XMLNode;
@ -64,7 +66,7 @@ class XMLNode;
* anvil,anvil.
*/
class PowerupManager
class PowerupManager : public NoCopy
{
public:
// The anvil and parachute must be at the end of the enum, and the

View File

@ -25,6 +25,7 @@
#include "audio/sfx_manager.hpp"
#include "items/powerup_manager.hpp"
#include "utils/no_copy.hpp"
class Vec3;
class Kart;
@ -34,7 +35,7 @@ class Flyable;
/**
* \ingroup items
*/
class ProjectileManager
class ProjectileManager : public NoCopy
{
private:
typedef std::vector<Flyable*> Projectiles;

View File

@ -20,9 +20,9 @@
#ifndef HEADER_RUBBER_BAND_HPP
#define HEADER_RUBBER_BAND_HPP
#include "utils/no_copy.hpp"
#include "utils/vec3.hpp"
class Kart;
class Plunger;
@ -30,7 +30,7 @@ class Plunger;
* the shooting kart to the plunger.
* \ingroup items
*/
class RubberBand
class RubberBand : public NoCopy
{
private:
enum {RB_TO_PLUNGER, /**< Rubber band is attached to plunger. */