126 {
128 int gridX, gridZ;
129 g_Game.GetWorld().GetGridCoords(pEntity.GetPosition(), gridSize, gridX, gridZ);
130
133
137
138 int i = 0;
139 int gridCoordNumber;
140 for (i = 0; i < gridXStr.
Length(); ++i)
141 {
142 gridCoordNumber = gridXStr.
Get(i).
ToInt();
144 {
145 gridCoordNumber = -1;
146 }
147
148 positions.Insert(gridCoordNumber);
149 }
150
151 for (i = 0; i < gridZStr.
Length(); ++i)
152 {
153 gridCoordNumber = gridZStr.
Get(i).
ToInt();
155 {
156 gridCoordNumber = -1;
157 }
158
159 positions.Insert(gridCoordNumber);
160 }
161
162 return positions;
163 }
static const string GRID_SIZE_CFG_PATH
static bool IsOutOfMap(EntityAI pEntity)
static const int DISPLAY_GRID_POS_MAX_CHARS_COUNT
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static proto int AbsInt(int i)
Returns absolute value.
proto native int Length()
Returns length of string.
proto string Get(int index)
Gets n-th character from string.
proto native int ToInt()
Converts string to integer.