#ifndef _ManP_h_INCLUDED_
#define _ManP_h_INCLUDED_

#include "man.h"

#include "picturep.h"
#include "charap.h"

#define MAN_SPEED_LOADER_COUNT     4
#define MAN_NO_SPEED_LOADER_COUNT 10
#define MAN_REVOLVER_BULLET   6
#define MAN_AUTOMATIC_BULLET 15
#define MAN_RIFLE_BULLET     30

/* Man オブジェクト */
typedef struct _Man {
  Player player;
  int x, y; /* 座標 */
  int dir;  /* 向き */
  int status; /* 状態 */
  unsigned int bullet; /* 弾丸の数 */
  unsigned int load_count; /* 弾丸補充用のカウンタ */
  unsigned int gun; /* 拳銃の所持状態 */
  unsigned int speed_loader; /* スピード・ローダーの所持状態 */

  Picture stand_picture[4]; /* 立っている状態の画像(上下左右) */
  Picture shoot_picture[4]; /* 射撃状態の画像(上下左右) */
  Picture rifle_picture[4]; /* ライフル射撃状態の画像(上下左右) */
  _Picture _stand_picture[4]; /* オブジェクトの本体 */
  _Picture _shoot_picture[4]; /* オブジェクトの本体 */
  _Picture _rifle_picture[4]; /* オブジェクトの本体 */

  Character character; /* キャラクタ */
  _Character _character; /* オブジェクトの本体 */
} _Man;

#endif

/* End of program */
