
Just a small commit before I break everything and wished I had it backed up. -- Change : README to correspond with the GPLv2 licence as the codebase is now public. -- Add : Static.h to enable me to stop classes from being copied.
23 lines
424 B
C++
23 lines
424 B
C++
#ifndef _STATIC_H_
|
|
#define _STATIC_H_
|
|
|
|
/*
|
|
* Inheriting from this class will make the class uncopyable.
|
|
* It is useful to do this because a lot of the time we won't
|
|
* want to be able to copy stuff, like the window or the game class.
|
|
*
|
|
* I probably chose a bad name for this.
|
|
*
|
|
*/
|
|
|
|
class Static {
|
|
protected:
|
|
Static() {}
|
|
~Static() {}
|
|
private:
|
|
Static(const Static&);
|
|
Static& operator=(const Static &);
|
|
};
|
|
|
|
#endif
|