23 lines
344 B
C
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
|
|
|