@@ -4,7 +4,7 @@
#include "client/input/Keys.h"
#include "client/input/MouseButtons.h"
-struct Control {
+struct Control final {
void tick();
Keys keys;
@@ -8,7 +8,7 @@
using namespace std;
-class Client {
+class Client final {
public:
Client();
virtual ~Client();
@@ -3,7 +3,7 @@
#include "client/math/Vector.h"
-struct RenderSettings {
+struct RenderSettings final {
RenderSettings();
bool ssao;
#include "client/rendering/wrapper/Shader.h"
#include "client/math/MatrixStack.h"
-class Renderer {
+class Renderer final {
Renderer(Shader& shader, MatrixStack& stack);
@@ -44,7 +44,7 @@ private:
GLuint buffer;
bool error;
- struct Data {
+ struct Data final {
uint mask;
GLint internalFormat;
GLenum format;
@@ -5,7 +5,7 @@
#include "common/utils/Types.h"
-class Texture {
+class Texture final {
Texture();
~Texture();
#include "common/utils/HashedString.h"
#include "common/block/BlockBuilder.h"
-class Block {
+class Block final {
Block(u16 id, const HashedString& registry, const BlockBuilder& builder);
u16 getId() const;
@@ -1,7 +1,7 @@
#ifndef BLOCKBUILDER_H
#define BLOCKBUILDER_H
-class BlockBuilder {
+class BlockBuilder final {
BlockBuilder();
BlockBuilder& test();
@@ -7,7 +7,7 @@
#include "common/block/Block.h"
-class BlockRegistry {
+class BlockRegistry final {
BlockRegistry();
const Block& getBlock(const HashedString& registry) const;
#include "common/utils/DataVector.h"
-class Stream {
+class Stream final {
Stream();
Stream(size_t capacity);
#include <iostream>
#include <functional>
-class Face {
+class Face final {
// force usage by reference in every situation
Face(const Face& other) = delete;
-class HashedString {
+class HashedString final {
HashedString();
HashedString(const char* str);
@@ -14,7 +14,7 @@ public:
u32 hashCode() const;
- struct Hasher {
+ struct Hasher final {
u32 operator()(const HashedString& key) const;
};
template<typename T, uint L>
-class List {
+class List final {
List() : entries(0) {
#include "common/utils/Array.h"
template<typename T, uint N>
-class RingBuffer {
+class RingBuffer final {
void write(const T& t) {
#include "common/utils/String.h"
-class SplitString {
+class SplitString final {
SplitString(const char* str);
-class String {
+class String final {
String();
String(const char* str);
@@ -47,7 +47,7 @@ void Server::listenForClients() const {
std::cout << message << ": " << strerror(errno) << "\n";
}
-struct ConnectedClient {
+struct ConnectedClient final {
~ConnectedClient() {
if(socket != -1) {