Namespaces | Enumerations | Functions
direction.h File Reference
#include <cassert>
#include <iosfwd>
Include dependency graph for direction.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  osl
 

attackDefense.h


Enumerations

enum  osl::Direction {
  osl::SHORT_DIRECTION_MIN = 0, osl::SHORT8_DIRECTION_MIN = 0, osl::UL = 0, osl::U = 1,
  osl::UR = 2, osl::L = 3, osl::R = 4, osl::DL = 5,
  osl::D = 6, osl::DR = 7, osl::SHORT8_DIRECTION_MAX = 7, osl::UUL = 8,
  osl::UUR = 9, osl::LONG_DIRECTION_MIN = 10, osl::LONG_UL = 10, osl::LONG_U = 11,
  osl::LONG_UR = 12, osl::LONG_L = 13, osl::LONG_R = 14, osl::LONG_DL = 15,
  osl::LONG_D = 16, osl::LONG_DR = 17, osl::LONG_DIRECTION_MAX = 17, osl::DIRECTION_MIN = 0,
  osl::SHORT_DIRECTION_MAX = 9, osl::SHORT_DIRECTION_SIZE = 10, osl::DIRECTION_MAX = 17, osl::DIRECTION_INVALID_VALUE = 18,
  osl::DIRECTION_SIZE = 18
}

Functions

bool osl::isShort (Direction d)
bool osl::isShort8 (Direction d)
bool osl::isLong (Direction d)
Direction osl::inverseUnsafe (Direction d)
Direction osl::inverse (Direction d)
Direction osl::primDir (Direction d)
 8方向について,primitiveな4方向を求める
Direction osl::primDirUnsafe (Direction d)
 8方向について,primitiveな4方向を求める dとしてknight, INVALIDなども来る
bool osl::isValid (Direction d)
Direction osl::longToShort (Direction d)
Direction osl::shortToLong (Direction d)
 引数に longDirを与えてはいけない
int osl::dirToMask (Direction dir)
std::ostream & osl::operator<< (std::ostream &os, const Direction d)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines