dev:abstract_elements
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dev:abstract_elements [2014/09/23 19:17] – [Create abstract class] tsmall1 | dev:abstract_elements [2014/09/23 19:35] (current) – [Create abstract class] tsmall1 | ||
---|---|---|---|
Line 31: | Line 31: | ||
MDist< | MDist< | ||
Dir d = (Dir)rand.Create(Dirs:: | Dir d = (Dir)rand.Create(Dirs:: | ||
- | u32 maxWanderDist = Dirs:: | ||
- | | ||
- | maxWanderDist = MAX(GetWanderDistance(), | ||
Dirs:: | Dirs:: | ||
- | wanderPt *= maxWanderDist; | + | wanderPt *= Dirs:: |
- | if(window.GetRelativeAtom(wanderPt).GetType() == | + | if(window.IsLiveSite(wanderPt)) |
- | | + | |
{ | { | ||
- | window.SwapAtoms(wanderPt, | + | |
+ | | ||
+ | { | ||
+ | window.SwapAtoms(wanderPt, | ||
+ | } | ||
+ | } | ||
} | } | ||
} | } |
dev/abstract_elements.1411499878.txt.gz · Last modified: 2014/09/23 19:17 by tsmall1