#include <vehicle.h>
Public Types | |
| enum | Status { off, init1a, init2, ready, init1b } |
Public Member Functions | |
| ReactionFire (Vehicle *_unit) | |
| Status | getStatus () const |
| for each player that can still be attacked one bit is set | |
| int | enable () |
| enables the reaction fire or returns an error code ( result < 0 = -errorNr ) | |
| void | disable () |
| void | endOwnTurn () |
| hook that is called when a turn ends | |
| void | endAnyTurn () |
| void | checkData () |
| bool | canPerformAttack (Vehicle *target) |
| bool | canMove () const |
Public Attributes | |
| vector< int > | weaponShots |
| vector< int > | nonattackableUnits |
Friends | |
| class | Vehicle |
| class | UnitPropertyEditor |
Definition at line 120 of file vehicle.h.
|
|
|
|
|
Definition at line 626 of file vehicle.cpp. References UnitWeapon::count, Vehicle::typ, Vehicletype::weapons, and weaponShots. |
|
|
Definition at line 719 of file vehicle.cpp. References ContainerBaseType::hasFunction(), ContainerBaseType::MoveWithReactionFire, off, and Vehicle::typ. Referenced by Vehicle::canMove(), Vehicle::getHeightChange(), and Vehicle::getMovement(). |
|
|
Definition at line 728 of file vehicle.cpp. References GameMap::actplayer, ContainerBase::getCarrier(), ContainerBase::getMap(), getStatus(), nonattackableUnits, and ready. |
|
|
Definition at line 633 of file vehicle.cpp. References UnitWeapon::count, SingleWeapon::reactionFireShots, Vehicle::typ, UnitWeapon::weapon, Vehicletype::weapons, and weaponShots. |
|
|
Definition at line 691 of file vehicle.cpp. References ContainerBaseType::hasFunction(), init1a, init2, ContainerBaseType::MoveWithReactionFire, off, Vehicle::setMovement(), and Vehicle::typ. Referenced by copyVehicleData(), and UnitPropertyEditor::init(). |
|
|
enables the reaction fire or returns an error code ( result < 0 = -errorNr )
Definition at line 654 of file vehicle.cpp. References UnitWeapon::count, ContainerBaseType::hasFunction(), Vehicle::height, init2, ContainerBaseType::NoReactionfire, off, ready, SingleWeapon::shootable(), SingleWeapon::sourceheight, Vehicle::typ, Vehicletype::wait, UnitWeapon::weapon, and Vehicletype::weapons. Referenced by copyVehicleData(). |
|
|
Definition at line 701 of file vehicle.cpp. Referenced by Vehicle::endAnyTurn(). |
|
|
hook that is called when a turn ends
Definition at line 707 of file vehicle.cpp. References init1a, init1b, init2, nonattackableUnits, off, and ready. Referenced by Vehicle::endOwnTurn(). |
|
|
for each player that can still be attacked one bit is set
Definition at line 131 of file vehicle.h. Referenced by attackpossible2n(), ServiceTargetSearcher::available(), canPerformAttack(), copyVehicleData(), UnitPropertyEditor::init(), and Vehicle::postAttack(). |
|
|
|
|
|
|
|
|
Definition at line 138 of file vehicle.h. Referenced by canPerformAttack(), endOwnTurn(), tunitattacksunit::setresult(), and Vehicle::write(). |
|
|
Definition at line 137 of file vehicle.h. Referenced by checkData(), ReactionFire(), tunitattacksunit::setresult(), and Vehicle::write(). |
1.4.2