1 /** 2 * @file 3 * @brief Monster tentacle-related code. 4 **/ 5 6 #pragma once 7 8 #include "monster-type.h" 9 10 class monster; 11 12 bool mons_is_tentacle_head(monster_type mc); 13 bool mons_is_child_tentacle(monster_type mc); 14 bool mons_is_child_tentacle_segment(monster_type mc); 15 bool mons_is_solo_tentacle(monster_type mc); 16 bool mons_is_tentacle(monster_type mc); 17 bool mons_is_tentacle_segment(monster_type mc); 18 bool mons_is_tentacle_or_tentacle_segment(monster_type mc); 19 20 monster_type mons_tentacle_parent_type(const monster* mons); 21 monster_type mons_tentacle_child_type(const monster* mons); 22 23 bool mons_tentacle_adjacent(const monster* parent, const monster* child); 24 const monster& get_tentacle_head(const monster& mon); 25 26 void move_solo_tentacle(monster* tentacle); 27 void move_child_tentacles(monster * kraken); 28 bool destroy_tentacles(monster* head); 29 bool destroy_tentacle(monster* head); 30 31 int mons_available_tentacles(monster* head); 32 void mons_create_tentacles(monster* head); 33