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

IPC representation of the static server and world configuration. More...

#include <ipc_format.h>

Public Attributes

uint32_t snake_boost_steps
 Number of steps a snake moves per frame while boosting.
 
ipc_real_t snake_turn_radius_factor
 Multiplied with your segment radius to determine the inner turn radius.
 
ipc_real_t snake_pull_factor
 Pull-together factor (determines how fast segments move to the center of a loop)
 
ipc_real_t snake_conversion_factor
 how much of a snake's mass is converted to food when it dies
 
ipc_real_t snake_segment_distance_factor
 segment distance = (mass * factor)^exponent
 
ipc_real_t snake_segment_distance_exponent
 segment distance = (mass * factor)^exponent
 
ipc_real_t snake_consume_range
 consume range multiplier (multiplied with segment radius)
 
ipc_real_t snake_boost_loss_factor
 Multiplied with the snakes mass to determine how much mass is lost per frame while boosting.
 
ipc_real_t snake_survival_loss_factor
 This part of your mass is dropped every frame (to limit snake growth)
 
ipc_real_t snake_self_kill_mass_threshold
 Mass below which a snake dies through starvation.
 
ipc_real_t food_decay_step
 Food decays by this value each frame.
 
ipc_real_t log_credits_per_frame
 How many log messages you can send per frame.
 
ipc_real_t log_initial_credits
 How many log messages you can send right after startup.
 
ipc_real_t log_max_credits
 You can send at most this many messages in a row.
 

Detailed Description

IPC representation of the static server and world configuration.

Please note that this struct is filled once before bot startup, so if you (accidentally) modify them, they stay that way until your bot restarts.