Home
last modified time | relevance | path

Searched refs:FromSubCell (Results 1 – 4 of 4) sorted by relevance

/dports/games/openra/OpenRA-release-20200503/OpenRA.Mods.Common/Traits/
H A DMobile.cs197 public SubCell FromSubCell, ToSubCell; field in OpenRA.Mods.Common.Traits.Mobile
248 return new[] { Pair.New(FromCell, FromSubCell) }; in OccupiedCells()
254 return new[] { Pair.New(FromCell, FromSubCell), Pair.New(ToCell, ToSubCell) }; in OccupiedCells()
265 …ToSubCell = FromSubCell = info.LocomotorInfo.SharesCell ? init.World.Map.Grid.DefaultSubCell : Sub… in Mobile()
268 FromSubCell = ToSubCell = init.Get<SubCellInit, SubCell>(); in Mobile()
275 SetVisualPosition(self, init.World.Map.CenterOfSubCell(FromCell, FromSubCell)); in Mobile()
448 preferred = FromSubCell; in GetValidSubCell()
483 SetLocation(cell, FromSubCell, cell, FromSubCell); in SetPosition()
505 …&& (subCell == SubCell.Any || FromSubCell == subCell || subCell == SubCell.FullCell || FromSubCell in IsLeavingCell()
535 if (FromCell == from && ToCell == to && FromSubCell == fromSub && ToSubCell == toSub) in SetLocation()
[all …]
/dports/games/openra/OpenRA-release-20200503/OpenRA.Mods.Common/Activities/Move/
H A DMove.cs208 …mobile.SetLocation(mobile.FromCell, mobile.FromSubCell, nextCell.Value.First, nextCell.Value.Secon… in Tick()
213 map.Grid.OffsetOfSubCell(mobile.FromSubCell); in Tick()
216 (map.Grid.OffsetOfSubCell(mobile.FromSubCell) + map.Grid.OffsetOfSubCell(mobile.ToSubCell)) / 2; in Tick()
308 … return Pair.New(newCell, mobile.GetAvailableSubCell(nextCell, mobile.FromSubCell, ignoreActor)); in PopPath()
319 …return Pair.New(newCell.Value, mobile.GetAvailableSubCell(newCell.Value, mobile.FromSubCell, ignor… in PopPath()
329 return Pair.New(nextCell, mobile.GetAvailableSubCell(nextCell, mobile.FromSubCell, ignoreActor)); in PopPath()
503 var fromSubcellOffset = map.Grid.OffsetOfSubCell(mobile.FromSubCell); in OnComplete()
H A DMoveWithinRange.cs52 ….Where(c => Mobile.CanStayInCell(c) && AtCorrectRange(map.CenterOfSubCell(c, Mobile.FromSubCell))); in CandidateMovementCells()
/dports/games/openra/OpenRA-release-20200503/OpenRA.Mods.Cnc/Activities/
H A DLeapAttack.cs134 var origin = self.World.Map.CenterOfSubCell(self.Location, mobile.FromSubCell); in Tick()