-
Notifications
You must be signed in to change notification settings - Fork 0
/
operators.h
18 lines (10 loc) · 945 Bytes
/
operators.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once
#include "costs.h"
typedef node (*operators)(node a, cost_function foo, heuristic heuristic_);
node roll_up(node state, cost_function cost, heuristic heuristic_);
node roll_down(node state, cost_function cost, heuristic heuristic_);
node roll_left(node state, cost_function cost, heuristic heuristic_);
node roll_right(node state, cost_function cost, heuristic heuristic_);
node standing_move(node &state, const cost_function cost, heuristic heuristic_, const int x, const int y, const int direction_x, const int direction_y);
node sideways_move(node &state, const cost_function cost, heuristic heuristic_, const int x1, const int y1, const int x2, const int y2, const int direction_x, const int direction_y);
node forewards_move(node &state, const cost_function cost, heuristic heuristic_, const int x1, const int y1, const int x2, const int y2, const int m_x, const int m_y, const int direction_x, const int direction_y);