Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
38 lines
1.4 KiB
C++
38 lines
1.4 KiB
C++
// CommandManager.h: interface for the CCommandManager class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_COMMANDMANAGER_H__9F8224F9_E04E_4378_8D23_5FC74C33A11E__INCLUDED_)
|
|
#define AFX_COMMANDMANAGER_H__9F8224F9_E04E_4378_8D23_5FC74C33A11E__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#pragma warning(disable:4786) // don't warn about browse name overflow.
|
|
|
|
#include "List.h"
|
|
|
|
#include "Command.h"
|
|
|
|
class CCommandManager
|
|
{
|
|
protected:
|
|
List<CCommand> m_lstCommand;
|
|
long m_lBottom, m_lTop, m_lMemoryTop;
|
|
long m_lPresent;
|
|
|
|
public:
|
|
CCommandManager();
|
|
virtual ~CCommandManager();
|
|
|
|
void AddCommand(unsigned long dwKind, unsigned long dwUID, unsigned long dwFrame, unsigned long dwCommand, unsigned long dwListKind, float eData);
|
|
void AddCommand(unsigned long dwKind, unsigned long dwUID, unsigned long dwFrame, unsigned long dwCommand, unsigned long dwListKind, quaternion eData);
|
|
void AddCommand(unsigned long dwKind, unsigned long dwUID, unsigned long dwFrame, unsigned long dwCommand, unsigned long dwListKind, color eData);
|
|
void AddCommand(unsigned long dwKind, unsigned long dwUID, unsigned long dwFrame, unsigned long dwCommand, unsigned long dwListKind, vector3 eData);
|
|
CCommand *Undo(void);
|
|
CCommand *Redo(void);
|
|
};
|
|
|
|
#endif // !defined(AFX_COMMANDMANAGER_H__9F8224F9_E04E_4378_8D23_5FC74C33A11E__INCLUDED_)
|