____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"
#include <stdio.h>
#include <stdlib.h>
#include "stratagus.h"
#include "unittype.h"
#include "animation.h"
#include "player.h"
#include "unit.h"
#include "actions.h"
#include "map.h"
Go to the source code of this file.
Functions | |
| void | HandleActionDie (CUnit *unit) |
| Handle command build. | |
Definition in file action_die.cpp.
| void HandleActionDie | ( | CUnit * | unit | ) |
Handle command build.
Unit dies!
| unit | The unit which dies. |
Definition at line 55 of file action_die.cpp.
References CUnit::Anim, CUnitType::Animations, Assert, CUnitType::CorpseType, CUnit::CurrentSightRange, CAnimations::Death, CUnit::Frame, CPlayer::Index, MapMarkUnitSight(), MapUnmarkUnitSight(), CVariable::Max, CUnit::Orders, CUnit::Player, CUnit::Release(), CUnit::Remove(), SIGHTRANGE_INDEX, CUnitType::Stats, CUnit::SubAction, CUnitType::TileHeight, CUnitType::TileWidth, CUnit::Type, CUnit::_unit_anim_::Unbreakable, UnitActionDie, UnitShowAnimation(), UnitUpdateHeading(), and CUnitStats::Variables.
1.5.6