?? simulation.h
字號:
/****************************************************************
* CLASS Simulation
* The object running the process of "testing" a troll against
* several representative cases
****************************************************************/
#ifndef SIMULATION_H
#define SIMULATION_H
#include "WorldGrid.h"
#include "Entities.h"
#include "Troll.h"
class Simulation
{
// The three test cases
WorldGrid * Grids[ 3 ];
// Arrays of pointers to the entities in each grid
Entity * EntityTable[ 3 ][ MAX_ENTITIES ];
// Working copies trashed by each troll
WorldGrid WorkingGrid;
Entity * WorkingTable[ MAX_ENTITIES ];
public:
// Construction
Simulation();
Simulation( int x, int y );
// Making test cases for the evolution process
void BuildTestCases();
// Running a troll through all test cases
double RunSim( Troll & troll );
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -