#include <terraintype.h>
Public Member Functions | |
| TerrainAccess (void) | |
| int | accessible (const TerrainBits &bts) const |
| checks whether a field with the given terrainbits is accessible. | |
| void | read (tnstream &stream) |
| void | write (tnstream &stream) const |
| void | runTextIO (PropertyContainer &pc) |
Public Attributes | |
| TerrainBits | terrain |
| at least one of these bits must match on of the terrain | |
| TerrainBits | terrainreq |
| ALL these bits must be set in the terrain. | |
| TerrainBits | terrainnot |
| if one of these bits is set, the field will NOT be accessible | |
| TerrainBits | terrainkill |
| if a terrain is not accessible AND one of these bits is matched, the unit will be destroyed | |
Definition at line 40 of file terraintype.h.
|
|
Definition at line 372 of file terraintype.cpp. References terrain. |
|
|
checks whether a field with the given terrainbits is accessible.
Definition at line 377 of file terraintype.cpp. References terrain, terrainkill, terrainnot, and terrainreq. Referenced by ObjectType::buildable(), checkunitsforremoval(), JumpDrive::fieldReachable(), BuildingItem::place(), VehicleItem::place(), stu_height(), and terrainaccessible2(). |
|
|
Definition at line 73 of file terraintype.cpp. References TerrainBits::read(), terrain, terrainkill, terrainnot, and terrainreq. Referenced by Vehicletype::read(), ObjectType::read(), and BuildingType::read(). |
|
|
Definition at line 95 of file terraintype.cpp. References PropertyContainer::addTagArray(), terrain, terrainkill, terrainnot, terrainProperties, terrainPropertyNum, and terrainreq. Referenced by Vehicletype::runTextIO(), ObjectType::FieldModification::runTextIO(), and BuildingType::runTextIO(). |
|
|
Definition at line 85 of file terraintype.cpp. References terrain, terrainkill, terrainnot, terrainreq, and TerrainBits::write(). Referenced by Vehicletype::write(), ObjectType::write(), and BuildingType::write(). |
|
|
at least one of these bits must match on of the terrain
Definition at line 45 of file terraintype.h. Referenced by accessible(), Vehicletype::read(), read(), runTextIO(), TerrainAccess(), UnitInfoDialog::userHandler(), viewterraininfo(), and write(). |
|
|
if a terrain is not accessible AND one of these bits is matched, the unit will be destroyed
Definition at line 54 of file terraintype.h. Referenced by accessible(), Vehicletype::read(), read(), runTextIO(), UnitInfoDialog::userHandler(), viewterraininfo(), and write(). |
|
|
if one of these bits is set, the field will NOT be accessible
Definition at line 51 of file terraintype.h. Referenced by accessible(), Vehicletype::read(), read(), runTextIO(), UnitInfoDialog::userHandler(), viewterraininfo(), and write(). |
|
|
ALL these bits must be set in the terrain.
Definition at line 48 of file terraintype.h. Referenced by accessible(), Vehicletype::read(), read(), runTextIO(), UnitInfoDialog::userHandler(), viewterraininfo(), and write(). |
1.4.2