Files
source/Tactical/Structure Wrap.h
T
Wanne 80509d2b61 New Feature: static fortifications can now be built by mercs (by Flugente)
- if the terrain allows it, an empty sandbag (item 1540) can be filled to a full sandbag (item 1541). You need to have a shovel (item 1015) in your second hand. You will notice the new hammer cursor
- by using a full sandbag, you can build a sandbag barrier
- by using a concertina stack, you can build a concertina wire barrier
- this only works if the current map has sandbags/concertina wire in its tileset
- with a shovel in your hand, you can remove a sandbag barrier
- changed the size of shovel so it can actually be put in inventories. It was also necessary to remove its ability to be used as a melee weapon.
- for further info, see this thread: http://www.bears-pit.com/board/ubbthreads.php/topics/305822.html#Post305822


git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5340 3b4a5df2-a311-0410-b5c6-a8a6f20db521
2012-06-11 08:32:07 +00:00

56 lines
2.1 KiB
C

#ifndef STRUCURE_WRAP_H
#define STRUCURE_WRAP_H
BOOLEAN IsTreePresentAtGridNo( INT32 sGridNo );
BOOLEAN IsFencePresentAtGridNo( INT32 sGridNo );
BOOLEAN IsJumpableFencePresentAtGridNo( INT32 sGridNo );
BOOLEAN IsDoorPresentAtGridNo( INT32 sGridNo );
// OK, THIS FUNCTION RETURNS A LEVELNODE POINTER TO A WALL OF THE SAME ORIENTATION
// AS WAS GIVEN. RETURNS NULL IF NONE FOUND.
LEVELNODE *GetWallLevelNodeOfSameOrientationAtGridNo( INT32 sGridNo, INT8 ubOrientation );
LEVELNODE *IsWallPresentAtGridNo( INT32 sGridNo );
BOOLEAN IsDoorVisibleAtGridNo( INT32 sGridNo );
BOOLEAN IsHiddenStructureVisible( INT32 sGridNo, UINT16 usIndex );
BOOLEAN DoesGridNoContainHiddenStruct( INT32 sGridNo, BOOLEAN *pfVisible );
BOOLEAN WallExistsOfTopLeftOrientation( INT32 sGridNo );
BOOLEAN WallExistsOfTopRightOrientation( INT32 sGridNo );
BOOLEAN WallOrClosedDoorExistsOfTopLeftOrientation( INT32 sGridNo );
BOOLEAN WallOrClosedDoorExistsOfTopRightOrientation( INT32 sGridNo );
BOOLEAN OpenRightOrientedDoorWithDoorOnRightOfEdgeExists( INT32 sGridNo );
BOOLEAN OpenLeftOrientedDoorWithDoorOnLeftOfEdgeExists( INT32 sGridNo );
LEVELNODE *GetWallLevelNodeAndStructOfSameOrientationAtGridNo( INT32 sGridNo, INT8 ubOrientation, STRUCTURE **ppStructure );
BOOLEAN CutWireFence( INT32 sGridNo );
BOOLEAN IsCuttableWireFenceAtGridNo( INT32 sGridNo );
BOOLEAN IsCutWireFenceAtGridNo( INT32 sGridNo );
BOOLEAN IsRepairableStructAtGridNo( INT32 sGridNo, UINT8 *pubID );
BOOLEAN IsRefuelableStructAtGridNo( INT32 sGridNo, UINT8 *pubID );
BOOLEAN IsFortificationPossibleAtGridNo( INT32 sGridNo, UINT8 *pubID ); // added by Flugente
BOOLEAN IsRoofPresentAtGridNo( INT32 sGridNo );
INT32 FindDoorAtGridNoOrAdjacent( INT32 sGridNo );
BOOLEAN IsCorpseAtGridNo( INT32 sGridNo, UINT8 ubLevel );
BOOLEAN SetOpenableStructureToClosed( INT32 sGridNo, UINT8 ubLevel );
//Legion by Jazz
BOOLEAN IsJumpableWindowPresentAtGridNo( INT32 sGridNo , INT8 direction2 ); //legion 2 Windows
BOOLEAN IsLegionWallPresentAtGridno( INT32 sGridNo ); //legion 2 Fence
#endif