HOG2
Classes | Namespaces | Enumerations | Functions | Variables
SnakeBird.h File Reference
#include <stdio.h>
#include "SearchEnvironment.h"
#include <array>
Include dependency graph for SnakeBird.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SnakeBird::SnakeBirdState
 
struct  SnakeBird::SnakeBirdAction
 
struct  SnakeBird::SnakeBirdAnimationStep
 
class  SnakeBird::SnakeBird
 
struct  std::hash< SnakeBird::SnakeBirdState >
 

Namespaces

 SnakeBird
 
 std
 

Enumerations

enum  SnakeBird::snakeDir : uint8_t {
  SnakeBird::kLeft =0x0, SnakeBird::kRight =0x1, SnakeBird::kUp =0x2, SnakeBird::kDown =0x3,
  SnakeBird::kNoDirection =0x4
}
 
enum  SnakeBird::SnakeBirdAnimation : uint8_t {
  SnakeBird::kMovement, SnakeBird::kFall, SnakeBird::kInitialTeleport, SnakeBird::kTeleport,
  SnakeBird::kWentInGoal, SnakeBird::kFellInGoal, SnakeBird::kDoneAnimation, SnakeBird::kPauseWhenDead,
  SnakeBird::kNeedsInitialization
}
 
enum  SnakeBird::SnakeBirdWorldObject : uint8_t {
  SnakeBird::kEmpty = 0x80, SnakeBird::kFruit = 0x81, SnakeBird::kExit = 0x82, SnakeBird::kPortal1 = 0x83,
  SnakeBird::kPortal2 = 0x84, SnakeBird::kPortal, SnakeBird::kGround = 0x40, SnakeBird::kSpikes = 0x41,
  SnakeBird::kBlock1 = 0x20, SnakeBird::kBlock2 = 0x21, SnakeBird::kBlock3 = 0x22, SnakeBird::kBlock4 = 0x23,
  SnakeBird::kSnake1 = 0x10, SnakeBird::kSnake2 = 0x11, SnakeBird::kSnake3 = 0x12, SnakeBird::kSnake4 = 0x13,
  SnakeBird::kNothing = 0x0
}
 
enum  SnakeBird::TeleportResult { SnakeBird::kNoTeleport, SnakeBird::kTeleportSuccess, SnakeBird::kTeleportToExit }
 

Functions

static std::ostream & SnakeBird::operator<< (std::ostream &out, const SnakeBirdAction &a)
 

Variables

const uint64_t SnakeBird::locationMask = 0x1FF
 
const uint64_t SnakeBird::snakeLenMask = 0x1F
 
const uint64_t SnakeBird::fruitMask = 0x1F
 
const uint64_t SnakeBird::snakeHeadMask = 0x7
 
const uint64_t SnakeBird::snakeBodyMask = 0x3
 
const uint64_t SnakeBird::kOne = 0x1
 
const int SnakeBird::kDead = 510
 
const int SnakeBird::kInGoal = 511
 
const uint8_t SnakeBird::kNothingPushed = 0xFF
 
const int SnakeBird::codeSize = 2
 
const uint8_t SnakeBird::kCanEnterMask = 0x80
 
const uint8_t SnakeBird::kGroundMask = 0x40
 
const uint8_t SnakeBird::kSnakeMask = 0x10
 
const uint8_t SnakeBird::kBlockMask = 0x20