Starship Code Contest  0.1
A real student nightmare...
Data Fields
Decision_frame Struct Reference

This structure gathers the information needed to pilot a starship each frame. More...

#include <acquisition.h>

Data Fields

int move
 
double angle_starship
 
double angle_gun
 
double angle_radar
 
int shot
 

Detailed Description

This structure gathers the information needed to pilot a starship each frame.

Each frame, an A.I. can change the gear, change the angle move of the starship, turn the gun and the radar and use its gun to shot when this last one is reloaded.

Definition at line 21 of file acquisition.h.

Field Documentation

◆ angle_gun

double Decision_frame::angle_gun

Turning the gun : from -0.15 to 0.15 radian each frame.

Definition at line 24 of file acquisition.h.

◆ angle_radar

double Decision_frame::angle_radar

Turning the radar : from -0.15 to 0.15 radian each frame.

Definition at line 25 of file acquisition.h.

◆ angle_starship

double Decision_frame::angle_starship

Turning angle : from -0.05 to 0.05 radian each frame.

Definition at line 23 of file acquisition.h.

◆ move

int Decision_frame::move

An integer for the gear : 0 neutral, 1 front gear, -1 reverse.

Definition at line 22 of file acquisition.h.

Referenced by decision_frame().

◆ shot

int Decision_frame::shot

An integer for the use of the gun : 1 to shot, 0 otherwise.

Definition at line 26 of file acquisition.h.

Referenced by decision_frame().


The documentation for this struct was generated from the following file: