| 138 | } |
| 139 | |
| 140 | void CALifeMonsterBrain::update(const bool forced) |
| 141 | { |
| 142 | #if 0 // def DEBUG |
| 143 | if (!Level().MapManager().HasMapLocation("debug_stalker",object().ID)) { |
| 144 | CMapLocation *map_location = |
| 145 | Level().MapManager().AddMapLocation( |
| 146 | "debug_stalker", |
| 147 | object().ID |
| 148 | ); |
| 149 | |
| 150 | map_location->SetHint (object().name_replace()); |
| 151 | } |
| 152 | #endif |
| 153 | |
| 154 | select_task(forced); |
| 155 | |
| 156 | if (object().m_smart_terrain_id != 0xffff) |
| 157 | process_task(); |
| 158 | else |
| 159 | default_behaviour(); |
| 160 | |
| 161 | movement().update(); |
| 162 | } |
| 163 | |
| 164 | void CALifeMonsterBrain::default_behaviour() { movement().path_type(MovementManager::ePathTypeNoPath); } |
| 165 |
no test coverage detected