aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk/tt_string_node.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-05-17 22:25:59 -0400
committerPaul Gilbert2016-07-15 19:12:50 -0400
commit5b42ae357ebdf5fd2665351a41127fc76167beb5 (patch)
tree85c10634713b603baa8311530655fa08f6eb2d52 /engines/titanic/true_talk/tt_string_node.h
parent5da19b674d3b9d24517a266e369728f3b5c2957a (diff)
downloadscummvm-rg350-5b42ae357ebdf5fd2665351a41127fc76167beb5.tar.gz
scummvm-rg350-5b42ae357ebdf5fd2665351a41127fc76167beb5.tar.bz2
scummvm-rg350-5b42ae357ebdf5fd2665351a41127fc76167beb5.zip
TITANIC: Refactor TTstringNode to have a base TTnode class
Diffstat (limited to 'engines/titanic/true_talk/tt_string_node.h')
-rw-r--r--engines/titanic/true_talk/tt_string_node.h21
1 files changed, 2 insertions, 19 deletions
diff --git a/engines/titanic/true_talk/tt_string_node.h b/engines/titanic/true_talk/tt_string_node.h
index f9f73ce545..31013a950e 100644
--- a/engines/titanic/true_talk/tt_string_node.h
+++ b/engines/titanic/true_talk/tt_string_node.h
@@ -23,17 +23,13 @@
#ifndef TITANIC_TT_STRING_NODE_H
#define TITANIC_TT_STRING_NODE_H
+#include "titanic/true_talk/tt_node.h"
#include "titanic/true_talk/tt_string.h"
#include "titanic/support/exe_resources.h"
namespace Titanic {
-class TTstringNode {
-private:
- /**
- * Returns the final node at the end of the linked list of nodes
- */
- TTstringNode *getTail();
+class TTstringNode : public TTnode {
protected:
/**
* Initializes state for the node
@@ -45,25 +41,12 @@ protected:
*/
void initialize(TTstringNode *oldNode);
public:
- TTstringNode *_pPrior;
- TTstringNode *_pNext;
TTstring _string;
FileHandle _file;
int _mode;
int _field1C;
public:
TTstringNode();
- virtual ~TTstringNode();
-
- /**
- * Links the passed node to this node as a linked list
- */
- void addNode(TTstringNode *newNode);
-
- /**
- * Detaches a node from any predecessor and/or successor
- */
- void detach();
};
} // End of namespace Titanic