Functions | Variables
hopfield_algo.cpp File Reference
#include "hopfield_algo.h"
Include dependency graph for hopfield_algo.cpp:

Go to the source code of this file.

Functions

void BuildSearchMap ()
void Clean ()
void ConnectionSearch ()
void FieldBuilding ()
int GetRoad (POINT **Road)
bool InitData ()
void InitTerrain ()
bool InitThreat ()
void RoadSearch ()
bool Search ()

Variables

int DirAdd [16][2]
int g_A = 10
int ** g_DisMap = NULL
int g_Ex = -1
int g_Ey = -1
int g_FlyingHeight = 100
double g_InitValue = 1e200
double ** g_Map = NULL
int g_MapHeight = -1
int g_MapWidth = -1
int g_MaxRepNumber = 2
int g_nSerial = 0
int g_nStep = 0
POINTg_Road = NULL
int ** g_SearchMap = NULL
POINTg_Serial = NULL
int g_Sx = -1
int g_Sy = -1
short * g_Terrain = NULL
THREAT_STRUCT g_Threats [100]
int g_ThreatsCount = 0
int nDirect = 8

Function Documentation

void BuildSearchMap ( )

Definition at line 152 of file hopfield_algo.cpp.

void Clean ( )

Definition at line 321 of file hopfield_algo.cpp.

void ConnectionSearch ( )

Definition at line 199 of file hopfield_algo.cpp.

void FieldBuilding ( )

Definition at line 233 of file hopfield_algo.cpp.

int GetRoad ( POINT **  Road)

Definition at line 377 of file hopfield_algo.cpp.

bool InitData ( )

Definition at line 345 of file hopfield_algo.cpp.

void InitTerrain ( )

Definition at line 131 of file hopfield_algo.cpp.

bool InitThreat ( )

Definition at line 98 of file hopfield_algo.cpp.

void RoadSearch ( )

Definition at line 277 of file hopfield_algo.cpp.

bool Search ( )

Definition at line 367 of file hopfield_algo.cpp.


Variable Documentation

int DirAdd[16][2]
Initial value:
{       { 0,-1},
                {-1, 0},        { 1, 0},
                        { 0, 1},

                {-1,-1},        { 1,-1},

                {-1, 1},        { 1, 1},

                {-1,-2},        { 1,-2},
        {-2,-1},                        { 2,-1},
        
        {-2, 1},                        { 2, 1},
                {-1, 2},        { 1, 2}
}

Definition at line 47 of file hopfield_algo.cpp.

int g_A = 10

Definition at line 92 of file hopfield_algo.cpp.

int** g_DisMap = NULL

Definition at line 85 of file hopfield_algo.cpp.

int g_Ex = -1

Definition at line 79 of file hopfield_algo.cpp.

int g_Ey = -1

Definition at line 80 of file hopfield_algo.cpp.

int g_FlyingHeight = 100

Definition at line 69 of file hopfield_algo.cpp.

double g_InitValue = 1e200

Definition at line 93 of file hopfield_algo.cpp.

double** g_Map = NULL

Definition at line 86 of file hopfield_algo.cpp.

int g_MapHeight = -1

Definition at line 67 of file hopfield_algo.cpp.

int g_MapWidth = -1

Definition at line 66 of file hopfield_algo.cpp.

int g_MaxRepNumber = 2

Definition at line 91 of file hopfield_algo.cpp.

int g_nSerial = 0

Definition at line 89 of file hopfield_algo.cpp.

int g_nStep = 0

Definition at line 90 of file hopfield_algo.cpp.

POINT* g_Road = NULL

Definition at line 87 of file hopfield_algo.cpp.

int** g_SearchMap = NULL

Definition at line 72 of file hopfield_algo.cpp.

POINT* g_Serial = NULL

Definition at line 88 of file hopfield_algo.cpp.

int g_Sx = -1

Definition at line 77 of file hopfield_algo.cpp.

int g_Sy = -1

Definition at line 78 of file hopfield_algo.cpp.

short* g_Terrain = NULL

Definition at line 71 of file hopfield_algo.cpp.

Definition at line 74 of file hopfield_algo.cpp.

int g_ThreatsCount = 0

Definition at line 75 of file hopfield_algo.cpp.

int nDirect = 8

Definition at line 61 of file hopfield_algo.cpp.



micros_hopfield
Author(s): Xiaojia Xiang
autogenerated on Thu Jun 6 2019 21:05:58