Browse Source

base: prevent instantiation of several static-only classes.

legacy
Sam Hocevar sam 11 years ago
parent
commit
b9d6454c30
6 changed files with 18 additions and 0 deletions
  1. +3
    -0
      src/audio.h
  2. +3
    -0
      src/forge.h
  3. +3
    -0
      src/platform.h
  4. +3
    -0
      src/profiler.h
  5. +3
    -0
      src/ticker.h
  6. +3
    -0
      src/tiler.h

+ 3
- 0
src/audio.h View File

@@ -26,6 +26,9 @@ class Audio
{ {
public: public:
static void Setup(int channels); static void Setup(int channels);

private:
Audio() {}
}; };


} /* namespace lol */ } /* namespace lol */


+ 3
- 0
src/forge.h View File

@@ -28,6 +28,9 @@ public:
static int Register(char const *path); static int Register(char const *path);
static void Deregister(int id); static void Deregister(int id);
static Font *GetFont(int id); static Font *GetFont(int id);

private:
Forge() {}
}; };


} /* namespace lol */ } /* namespace lol */


+ 3
- 0
src/platform.h View File

@@ -26,6 +26,9 @@ class Platform
{ {
public: public:
static int GetMouseCount(); static int GetMouseCount();

private:
Platform() {}
}; };


} /* namespace lol */ } /* namespace lol */


+ 3
- 0
src/profiler.h View File

@@ -48,6 +48,9 @@ public:
static void Stop(int id); static void Stop(int id);
static float GetAvg(int id); static float GetAvg(int id);
static float GetMax(int id); static float GetMax(int id);

private:
Profiler() {}
}; };


} /* namespace lol */ } /* namespace lol */


+ 3
- 0
src/ticker.h View File

@@ -45,6 +45,9 @@ public:


static void Shutdown(); static void Shutdown();
static int Finished(); static int Finished();

private:
Ticker() {}
}; };


} /* namespace lol */ } /* namespace lol */


+ 3
- 0
src/tiler.h View File

@@ -29,6 +29,9 @@ class Tiler
public: public:
static TileSet *Register(char const *path, ivec2 size, ivec2 count); static TileSet *Register(char const *path, ivec2 size, ivec2 count);
static void Deregister(TileSet *); static void Deregister(TileSet *);

private:
Tiler() {}
}; };


} /* namespace lol */ } /* namespace lol */


Loading…
Cancel
Save