mirror of https://github.com/dnomd343/klotski.git
Dnomd343
2 years ago
3 changed files with 78 additions and 16 deletions
@ -1,3 +1,3 @@ |
|||
cmake_minimum_required(VERSION 3.0) |
|||
|
|||
add_library(raw_code OBJECT convert.cc raw_code.cc) |
|||
add_library(raw_code OBJECT mirror.cc convert.cc raw_code.cc) |
|||
|
@ -0,0 +1,62 @@ |
|||
#include "raw_code.h" |
|||
|
|||
using klotski::RawCode; |
|||
|
|||
/// Static mirror functions
|
|||
bool RawCode::is_vertical_mirror(RawCode &&raw_code) { |
|||
return raw_code.is_vertical_mirror(); |
|||
} |
|||
|
|||
bool RawCode::is_horizontal_mirror(RawCode &&raw_code) { |
|||
return raw_code.is_horizontal_mirror(); |
|||
} |
|||
|
|||
bool RawCode::is_vertical_mirror(const RawCode &raw_code) { |
|||
return raw_code.is_vertical_mirror(); |
|||
} |
|||
|
|||
bool RawCode::is_horizontal_mirror(const RawCode &raw_code) { |
|||
return raw_code.is_horizontal_mirror(); |
|||
} |
|||
|
|||
RawCode RawCode::to_vertical_mirror(RawCode &&raw_code) { |
|||
return raw_code.to_vertical_mirror(); |
|||
} |
|||
|
|||
RawCode RawCode::to_horizontal_mirror(RawCode &&raw_code) { |
|||
return raw_code.to_horizontal_mirror(); |
|||
} |
|||
|
|||
RawCode RawCode::to_vertical_mirror(const RawCode &raw_code) { |
|||
return raw_code.to_vertical_mirror(); |
|||
} |
|||
|
|||
RawCode RawCode::to_horizontal_mirror(const RawCode &raw_code) { |
|||
return raw_code.to_horizontal_mirror(); |
|||
} |
|||
|
|||
/// Mirror check functions
|
|||
bool RawCode::is_vertical_mirror() const { |
|||
|
|||
// TODO: vertical mirror check
|
|||
|
|||
} |
|||
|
|||
bool RawCode::is_horizontal_mirror() const { |
|||
|
|||
// TODO: horizontal mirror check
|
|||
|
|||
} |
|||
|
|||
/// Mirror convert functions
|
|||
RawCode RawCode::to_vertical_mirror() const { |
|||
|
|||
// TODO: vertical mirror convert
|
|||
|
|||
} |
|||
|
|||
RawCode RawCode::to_horizontal_mirror() const { |
|||
|
|||
// TODO: horizontal mirror convert
|
|||
|
|||
} |
Loading…
Reference in new issue