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

This structure gathers information scaned by the radar about other starships. More...

#include <acquisition.h>

Data Fields

double x
 
double y
 
double angle_move
 
int speed
 
int nb_team
 

Detailed Description

This structure gathers information scaned by the radar about other starships.

When a radar scans and detect another starship in its vision area, information are thus collected in a such structure. The radar can see the exact position, the angle of move, the gear of speed and detect the team of the starship.

Definition at line 38 of file acquisition.h.

Field Documentation

◆ angle_move

double View_starship::angle_move

The angle of move of the starship in radian.

Definition at line 41 of file acquisition.h.

◆ nb_team

int View_starship::nb_team

An integer corresponding the team of the starship.

Definition at line 43 of file acquisition.h.

◆ speed

int View_starship::speed

The gear speed of the starship : 0 neutral, 1 front gear, -1 reverse.

Definition at line 42 of file acquisition.h.

◆ x

double View_starship::x

The position in absicca of the starship : beetwen 0.0 and 10.0 (some side effects).

Definition at line 39 of file acquisition.h.

◆ y

double View_starship::y

The position in ordinate of the starship : beetwen 0.0 and 10.0 (some side effects).

Definition at line 40 of file acquisition.h.


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