next up previous contents index
Next: Messageinfo Up: Monitor Communication Version 2 Previous: Monitor Communication Version 2   Contents   Index

Showinfo

showinfo_t2 構造体はプレイヤとボールの状態や位置情報を含み,モニタへ と毎サイクル(100ms)送信される.
typedef struct {
  char     pmode ;				// the play mode
  team_t   team[2] ;			// team names and scores
  ball_t   ball;				// ball information
  player_t pos[MAX_PLAYER * 2];	// the 22 players
  short    time ;				// current simulation time
} showinfo_t2 ;
各要素の値は,

typedef struct {
  short mode;
  short type;
  long  x;
  long  y;
  long  deltax;
  long  deltay;
  long  body_angle;
  long  head_angle;
  long  view_width;
  short view_quality;
  long  stamina;
  long  effort;
  long  recovery;
  short kick_count;
  short dash_count;
  short turn_count;
  short say_count;
  short tneck_count;
  short catch_count;
  short move_count;
  short chg_view_count;
} player_t;

typedef struct {
  long x;
  long y;
  long deltax;
  long deltay;
} ball_t;

typedef struct {
   char  name[16];
   short score;
} team_t ;



Hidehisa Akiyama 2004-11-21