aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/crepe/api/BehaviorScript.cpp18
-rw-r--r--src/crepe/api/BehaviorScript.h6
-rw-r--r--src/crepe/api/BehaviorScript.hpp1
3 files changed, 0 insertions, 25 deletions
diff --git a/src/crepe/api/BehaviorScript.cpp b/src/crepe/api/BehaviorScript.cpp
index e1c06b0..af7572c 100644
--- a/src/crepe/api/BehaviorScript.cpp
+++ b/src/crepe/api/BehaviorScript.cpp
@@ -13,21 +13,3 @@ BehaviorScript & GameObject::add_component<BehaviorScript>() {
ComponentManager & mgr = this->mediator.component_manager;
return mgr.add_component<BehaviorScript>(this->id, this->mediator);
}
-
-BehaviorScript::BehaviorScript(const BehaviorScript & other) : mediator(other.mediator), Component(other.game_object_id) {
- Log::logf("COPY CONSTRUCTOR!!!");
-}
-
-BehaviorScript::BehaviorScript(BehaviorScript && other) : mediator(other.mediator), Component(other.game_object_id) {
- Log::logf("MOVE CONSTRUCTOR!!!");
-}
-
-BehaviorScript & BehaviorScript::operator = (const BehaviorScript & other) {
- Log::logf("COPY OPERATOR!!!");
- return *this;
-}
-
-BehaviorScript & BehaviorScript::operator = (BehaviorScript && other) {
- Log::logf("MOVE OPERATOR!!!");
- return *this;
-}
diff --git a/src/crepe/api/BehaviorScript.h b/src/crepe/api/BehaviorScript.h
index 52a7cbf..3909b96 100644
--- a/src/crepe/api/BehaviorScript.h
+++ b/src/crepe/api/BehaviorScript.h
@@ -33,11 +33,6 @@ protected:
//! Only ComponentManager is allowed to instantiate BehaviorScript
friend class ComponentManager;
- BehaviorScript(const BehaviorScript &);
- BehaviorScript(BehaviorScript &&);
- BehaviorScript & operator = (const BehaviorScript &);
- BehaviorScript & operator = (BehaviorScript &&);
-
public:
/**
* \brief Set the concrete script of this component
@@ -53,7 +48,6 @@ public:
BehaviorScript & set_script(Args &&... args);
protected:
- std::string name = "unknown script";
//! Script instance
std::unique_ptr<Script> script = nullptr;
//! ScriptSystem needs direct access to the script instance
diff --git a/src/crepe/api/BehaviorScript.hpp b/src/crepe/api/BehaviorScript.hpp
index 218f27c..353d5e2 100644
--- a/src/crepe/api/BehaviorScript.hpp
+++ b/src/crepe/api/BehaviorScript.hpp
@@ -11,7 +11,6 @@ template <class T, typename... Args>
BehaviorScript & BehaviorScript::set_script(Args &&... args) {
static_assert(std::is_base_of<Script, T>::value);
this->script = std::unique_ptr<Script>(new T(std::forward<Args>(args)...));
- this->name = typeid(T).name();
this->script->game_object_id = this->game_object_id;
this->script->active = this->active;