szdytom a3d235b10b
add GameBoard
Signed-off-by: szdytom <szdytom@qq.com>
2024-02-04 21:01:06 +08:00

23 lines
344 B
C++

#ifndef OGLG_PLAYERMOVE_H_
#define OGLG_PLAYERMOVE_H_
#include "pc/astuple.h"
#include "pc/commcode.h"
#include "pc/pctypes.h"
struct PlayerMove {
Player player;
pos_t x, y;
Direction dir;
bool half;
bool isValid(pos_t w, pos_t h) const;
pos_t tx() const;
pos_t ty() const;
OGPC_DECLARE_ASTUPLE(player, x, y, dir, half)
};
#endif