![]() |
Blamite Game Engine - Sapien (Library)
00433.02.16.25.2127.blamite
The level editor application for the Blamite Game Engine.
|
Base class for hierarchy nodes. More...
#include <hierarchy.h>
Public Member Functions | |
BlamScenarioHierarchyNode (BlamScenarioHierarchyNodeType _node_type) | |
Constructs a new scenario hierarchy node. More... | |
BlamScenarioHierarchyNode (BlamScenarioHierarchyNodeType _node_type, std::string _display_name_override) | |
Constructs a new scenario hierarchy node. More... | |
virtual | ~BlamScenarioHierarchyNode () |
BlamScenarioHierarchyNodeType | GetType () |
Retrieves the type of this node. More... | |
virtual std::string | GetName () |
Retrieves the display name of the hierarchy node. More... | |
Public Attributes | |
BlamScenarioHierarchyNode * | parent_node = nullptr |
The parent node, if any, of this hierarchy node. More... | |
Protected Attributes | |
bool | use_custom_name = false |
Whether or not to use a custom display name for the node. More... | |
std::string | display_name_override = "unspecified" |
The custom display name of this hierarchy node. More... | |
Base class for hierarchy nodes.
BlamScenarioHierarchyNode::BlamScenarioHierarchyNode | ( | BlamScenarioHierarchyNodeType | _node_type | ) |
Constructs a new scenario hierarchy node.
_node_type | - The type of the new node. |
BlamScenarioHierarchyNode::BlamScenarioHierarchyNode | ( | BlamScenarioHierarchyNodeType | _node_type, |
std::string | _display_name_override | ||
) |
Constructs a new scenario hierarchy node.
_node_type | - The type of the new node. |
_display_name_override | - A custom display name to use instead of the default one. |
|
inlinevirtual |
|
virtual |
Retrieves the display name of the hierarchy node.
Reimplemented in BlamScenarioHierarchyNode_Object.
BlamScenarioHierarchyNodeType BlamScenarioHierarchyNode::GetType | ( | ) |
Retrieves the type of this node.
|
protected |
The custom display name of this hierarchy node.
In the case of objects, this name will only be used if use_custom_name
is set to true
. In the case of groups, this name is always used regardless of the use_custom_name
value.
BlamScenarioHierarchyNode* BlamScenarioHierarchyNode::parent_node = nullptr |
The parent node, if any, of this hierarchy node.
|
protected |
Whether or not to use a custom display name for the node.