ETrobocon2017 - 片山研究所モデルベース開発推進事業部
str
apps
explorer
PuzzleCodeConverter.h
[詳解]
1
#ifndef _INC_PUZZLE_CONVERTER
2
#define _INC_PUZZLE_CONVERTER
3
4
#include "
BlockColor.h
"
5
#include <map>
6
7
class
PuzzleCodeConverter
8
{
9
private
:
10
int
mPuzzleCode;
11
std::map<std::string, int> blockMap;
12
13
public
:
14
PuzzleCodeConverter
();
15
PuzzleCodeConverter
(
int
puzzleCode);
16
~PuzzleCodeConverter
();
17
void
resolvePositionCode
();
18
int
getPosition
(
BlockColor
color);
19
int
redToBlackPosition
(
int
redNum);
20
int
yellowToBlackPosition
(
int
yellowNum);
21
int
blueToBlackPosition
(
int
blueNum);
22
};
23
24
25
#endif //_INC_PUZZLE_CONVERTER
PuzzleCodeConverter::~PuzzleCodeConverter
~PuzzleCodeConverter()
Definition:
PuzzleCodeConverter.cpp:16
PuzzleCodeConverter::PuzzleCodeConverter
PuzzleCodeConverter()
Definition:
PuzzleCodeConverter.cpp:6
PuzzleCodeConverter::blueToBlackPosition
int blueToBlackPosition(int blueNum)
Definition:
PuzzleCodeConverter.cpp:117
PuzzleCodeConverter
Definition:
PuzzleCodeConverter.h:7
BlockColor
BlockColor
Definition:
BlockColor.h:5
PuzzleCodeConverter::redToBlackPosition
int redToBlackPosition(int redNum)
Definition:
PuzzleCodeConverter.cpp:87
BlockColor.h
PuzzleCodeConverter::getPosition
int getPosition(BlockColor color)
Definition:
PuzzleCodeConverter.cpp:54
PuzzleCodeConverter::yellowToBlackPosition
int yellowToBlackPosition(int yellowNum)
Definition:
PuzzleCodeConverter.cpp:102
PuzzleCodeConverter::resolvePositionCode
void resolvePositionCode()
Definition:
PuzzleCodeConverter.cpp:22
構築:
1.8.13