⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 undodata.h

📁 c+++ game uploading now
💻 H
字号:
/**
 @file
 A definition of a datastructure used to store undo data.
*/
#if !defined _UNDODATA__H_
#define _UNDODATA__H_
#include "Boards.h"

namespace Othello
{

    /**
     data structure to hold info about how a move must be undone in the
     expanded board representation. Altough I could have encapsuleted this
     in the MoveExecuter, it would have not been as efficient as a weak
     (pointer, or reference based) encapsulation, so it is neccessary to 
     have this structure defined separatly. */
    struct UndoData
    {

        squarevalue* Prev[32]; /**< pointers to the squares modified */
        unsigned int count;    /**< number of squares modified */
        UndoData()
            :count(0)
        {}
    };
}
#endif //_UNDODATA__H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -