Skip to content

Commit

Permalink
gamestate: Make component classes 'final'.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Sep 7, 2024
1 parent d09adb0 commit 170e43f
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions libopenage/gamestate/component/api/idle.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021-2023 the openage authors. See copying.md for legal info.
// Copyright 2021-2024 the openage authors. See copying.md for legal info.

#pragma once

Expand All @@ -7,7 +7,7 @@

namespace openage::gamestate::component {

class Idle : public APIComponent {
class Idle final : public APIComponent {
public:
using APIComponent::APIComponent;

Expand Down
2 changes: 1 addition & 1 deletion libopenage/gamestate/component/api/live.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


namespace openage::gamestate::component {
class Live : public APIComponent {
class Live final : public APIComponent {
public:
using APIComponent::APIComponent;

Expand Down
4 changes: 2 additions & 2 deletions libopenage/gamestate/component/api/move.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021-2023 the openage authors. See copying.md for legal info.
// Copyright 2021-2024 the openage authors. See copying.md for legal info.

#pragma once

Expand All @@ -8,7 +8,7 @@

namespace openage::gamestate::component {

class Move : public APIComponent {
class Move final : public APIComponent {
public:
using APIComponent::APIComponent;

Expand Down
4 changes: 2 additions & 2 deletions libopenage/gamestate/component/api/selectable.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023-2023 the openage authors. See copying.md for legal info.
// Copyright 2023-2024 the openage authors. See copying.md for legal info.

#pragma once

Expand All @@ -10,7 +10,7 @@

namespace openage::gamestate::component {

class Selectable : public APIComponent {
class Selectable final : public APIComponent {
public:
using APIComponent::APIComponent;

Expand Down
4 changes: 2 additions & 2 deletions libopenage/gamestate/component/api/turn.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021-2023 the openage authors. See copying.md for legal info.
// Copyright 2021-2024 the openage authors. See copying.md for legal info.

#pragma once

Expand All @@ -10,7 +10,7 @@

namespace openage::gamestate::component {

class Turn : public APIComponent {
class Turn final : public APIComponent {
public:
using APIComponent::APIComponent;

Expand Down
2 changes: 1 addition & 1 deletion libopenage/gamestate/component/internal/activity.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Node;

namespace component {

class Activity : public InternalComponent {
class Activity final : public InternalComponent {
public:
/**
* Creates a new activity component.
Expand Down
4 changes: 2 additions & 2 deletions libopenage/gamestate/component/internal/command_queue.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021-2023 the openage authors. See copying.md for legal info.
// Copyright 2021-2024 the openage authors. See copying.md for legal info.

#pragma once

Expand All @@ -19,7 +19,7 @@ class EventLoop;

namespace gamestate::component {

class CommandQueue : public InternalComponent {
class CommandQueue final : public InternalComponent {
public:
/**
* Creates an Ownership component.
Expand Down
2 changes: 1 addition & 1 deletion libopenage/gamestate/component/internal/ownership.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class EventLoop;

namespace gamestate::component {

class Ownership : public InternalComponent {
class Ownership final : public InternalComponent {
public:
/**
* Creates an Ownership component.
Expand Down
2 changes: 1 addition & 1 deletion libopenage/gamestate/component/internal/position.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class EventLoop;

namespace gamestate::component {

class Position : public InternalComponent {
class Position final : public InternalComponent {
public:
/**
* Create a Position component.
Expand Down

0 comments on commit 170e43f

Please sign in to comment.