SPN C++ Bot Framework
Loading...
Searching...
No Matches
Public Attributes | List of all members
IpcSegmentInfo Struct Reference

IPC representation of a snake segment. More...

#include <ipc_format.h>

Public Attributes

ipc_real_t x
 Relative position X in world orientation.
 
ipc_real_t y
 Relative position Y in world orientation.
 
ipc_real_t r
 Segment radius.
 
ipc_real_t dir
 Direction angle relative to your heading (range -π to +π)
 
ipc_real_t dist
 Distance between the center of your head and the segment's center.
 
uint32_t idx
 Segment number starting from head (idx == 0)
 
ipc_guid_t bot_id
 Bot ID.
 
bool is_self
 True if this segment belongs to ones own snake.
 

Detailed Description

IPC representation of a snake segment.