#include <move_optimizer.h>
Inheritance diagram for MoveOptimizer::
Public Methods | |
MoveOptimizer () | |
MoveOptimizer (Map const &map, Movements const &moves) | |
virtual void | optimize (Map const &map, Movements const &moves) |
virtual Movements const & | moves () const |
virtual int | numberOfMoves () const |
virtual int | numberOfPushes () const |
Private Attributes | |
Movements | m_moves |
int | m_number_of_moves |
int | m_number_of_pushes |
|
Constructs the empty object.
|
|
Contructs the object and optimizes the number of moves.
|
|
Returns the optimized moves. Note that the moves are not atomic, but as compact as possible. Reimplemented from Optimizer. |
|
Returns the optimized number of atomic moves.
Reimplemented from Optimizer. |
|
Returns the optimized number of atomic pushes.
Reimplemented from Optimizer. |
|
Optimizes the moves of the given map.
Reimplemented from Optimizer. |
|
The optimized moves.
|
|
The number of atomic moves.
|
|
The number of atomic pushes.
|