level.h config.h item.h flags.h
gameserv.o: gameserv.cpp aClient.h options.h player.h config.h \
extern.h level.h item.h pouch.h flags.h sockhelp.h
-hash.o: hash.cpp extern.h player.h level.h config.h options.h item.h
+hash.o: hash.cpp extern.h player.h level.h config.h options.h item.h \
+ aClient.h
item.o: item.cpp item.h level.h player.h extern.h config.h options.h
-level.o: level.cpp item.h level.h extern.h player.h config.h options.h
+level.o: level.cpp item.h level.h player.h extern.h config.h options.h
log.o: log.cpp extern.h player.h level.h config.h options.h item.h
news.o: news.cpp extern.h player.h level.h config.h options.h item.h
pouch.o: pouch.cpp extern.h player.h level.h config.h options.h item.h \
news.cpp \
pouch.cpp \
player.cpp \
+ script.cpp \
sockhelp.cpp
CONSOLESRCS = $(TSRCS) $(CONSOLEDRIVER)
--- /dev/null
+#include "script.h"
+
+script::script()
+{
+ scriptstr = "";
+}
+
+script::script(string &str)
+{
+ scriptstr = str;
+}
+
+script::script(const char *str)
+{
+ scriptstr = str;
+}
+
+script::~script()
+{
+ scriptstr = "";
+}
+
+void script::setString(string &str)
+{
+ scriptstr = str;
+}
+
+void script::setString(const char *str)
+{
+ scriptstr = str;
+}
+
+bool script::executeScript(Player *p)
+{
+ return true;
+}
--- /dev/null
+#ifndef SCRIPT_H
+#define SCRIPT_H
+
+#include <string>
+
+using namespace std;
+
+class Player; // Forward declaration
+
+class script
+{
+public:
+ script(); // Default constructor
+ script(string &str); // Copy constructor
+ script(const char *str); // Copy constructor
+
+ void setString(string &str);
+ void setString(const char *str);
+
+ bool executeScript(Player *p); // Run the script against a player
+
+ ~script(); // Destructor
+private:
+ string scriptstr;
+};
+
+#endif