HOG2
Classes | Typedefs | Functions | Variables
TopSpin.h File Reference
#include <stdint.h>
#include <iostream>
#include "SearchEnvironment.h"
#include "PermutationPuzzleEnvironment.h"
#include "UnitSimulation.h"
#include "GraphEnvironment.h"
#include "Graph.h"
#include <sstream>
#include <unordered_map>
Include dependency graph for TopSpin.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TopSpinState< N >
 
class  TopSpin< N, k >
 

Typedefs

typedef int TopSpinAction
 Actions are the first tile that gets swapped. More...
 

Functions

template<int N>
static std::ostream & operator<< (std::ostream &out, const TopSpinState< N > &loc)
 
template<int N>
static bool operator== (const TopSpinState< N > &l1, const TopSpinState< N > &l2)
 
template<int N>
static bool operator!= (const TopSpinState< N > &l1, const TopSpinState< N > &l2)
 
static void LocalDrawCircle (float x, float y, float r1, float r2, int segments)
 
static void DrawTSTile (float x, float y, char c1, char c2, int w, int h)
 
template<int N, int k>
static void DrawFrame (int w, int h)
 

Variables

static const int tsCostCount = 21
 
static int tscosts [tsCostCount] = {47,45,52,41,56,43,50,46,49,51,48,53,59,58,55,40,57,60,44,42,54}
 

Typedef Documentation

◆ TopSpinAction

typedef int TopSpinAction

Actions are the first tile that gets swapped.

Definition at line 47 of file TopSpin.h.

Function Documentation

◆ DrawFrame()

template<int N, int k>
static void DrawFrame ( int  w,
int  h 
)
static

Definition at line 450 of file TopSpin.h.

◆ DrawTSTile()

static void DrawTSTile ( float  x,
float  y,
char  c1,
char  c2,
int  w,
int  h 
)
static

Definition at line 425 of file TopSpin.h.

Referenced by TopSpin< N, k >::OpenGLDraw().

◆ LocalDrawCircle()

static void LocalDrawCircle ( float  x,
float  y,
float  r1,
float  r2,
int  segments 
)
static

Definition at line 410 of file TopSpin.h.

References TWOPI.

Referenced by TopSpin< N, k >::OpenGLDraw().

◆ operator!=()

template<int N>
static bool operator!= ( const TopSpinState< N > &  l1,
const TopSpinState< N > &  l2 
)
static

Definition at line 71 of file TopSpin.h.

◆ operator<<()

template<int N>
static std::ostream& operator<< ( std::ostream &  out,
const TopSpinState< N > &  loc 
)
static

Definition at line 50 of file TopSpin.h.

◆ operator==()

template<int N>
static bool operator== ( const TopSpinState< N > &  l1,
const TopSpinState< N > &  l2 
)
static

Definition at line 58 of file TopSpin.h.

References TopSpinState< N >::puzzle.

Variable Documentation

◆ tsCostCount

const int tsCostCount = 21
static

Definition at line 363 of file TopSpin.h.

Referenced by TopSpin< N, k >::GCost().

◆ tscosts

int tscosts[tsCostCount] = {47,45,52,41,56,43,50,46,49,51,48,53,59,58,55,40,57,60,44,42,54}
static

Definition at line 364 of file TopSpin.h.

Referenced by TopSpin< N, k >::GCost().