MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / MaxWidth

Method MaxWidth

Source/Tiles.hpp:88–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 std::vector<sStructureSprite> mSprites;
87
88 int16 MaxWidth() const {
89 int16 Width = 0;
90
91 for (auto Tile : mTiles) {
92 if (Width < Tile.mX)
93 Width = Tile.mX;
94 }
95 return Width;
96 }
97
98 int16 MaxHeight() const {
99 int16 Height = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected