Initial commit of Dink Smallwood HD source. See the "Programmer readme.txt" for information on how to set it up.
git-svn-id: svn://rtsoft.com/rtsvn/projects/RTDink@1469 353e56fe-9613-0410-8469-b96ad8e6f29c
This commit is contained in:
parent
dfbc2348a5
commit
d4f66a5d2e
115 changed files with 37737 additions and 0 deletions
46
source/dink/ScriptAccelerator.h
Normal file
46
source/dink/ScriptAccelerator.h
Normal file
|
@ -0,0 +1,46 @@
|
|||
// ***************************************************************
|
||||
// ScriptAccelerator - Creation date: 01/23/2010
|
||||
// -------------------------------------------------------------
|
||||
// Robinson Technologies Copyright (C) 2010 - All Rights Reserved
|
||||
//
|
||||
// ***************************************************************
|
||||
// Programmer(s): Seth A. Robinson (seth@rtsoft.com)
|
||||
// ***************************************************************
|
||||
|
||||
#ifndef ScriptAccelerator_h__
|
||||
#define ScriptAccelerator_h__
|
||||
|
||||
#include "PlatformSetup.h"
|
||||
|
||||
class ScriptPosition
|
||||
{
|
||||
public:
|
||||
|
||||
ScriptPosition(){};
|
||||
ScriptPosition(int pos) : current (pos){};
|
||||
|
||||
|
||||
int current;
|
||||
};
|
||||
|
||||
|
||||
typedef map<string, ScriptPosition> ScriptMap;
|
||||
|
||||
|
||||
class ScriptAccelerator
|
||||
{
|
||||
public:
|
||||
ScriptAccelerator();
|
||||
virtual ~ScriptAccelerator();
|
||||
|
||||
void Kill();
|
||||
ScriptPosition * GetPositionByName(string label);
|
||||
void AddPosition(string label, int current);
|
||||
|
||||
private:
|
||||
|
||||
ScriptMap m_data;
|
||||
|
||||
};
|
||||
|
||||
#endif // ScriptAccelerator_h__
|
Loading…
Add table
Add a link
Reference in a new issue