Commit before reorganising level generation
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
module Dodge.Creature.Property
|
||||
( crIsArmouredFrom
|
||||
, crNearSeg
|
||||
, crNearPoint
|
||||
) where
|
||||
import Dodge.Data
|
||||
import Dodge.Item.Data
|
||||
@@ -20,3 +21,6 @@ crIsArmouredFrom p cr
|
||||
|
||||
crNearSeg :: Float -> Point2 -> Point2 -> Creature -> Bool
|
||||
crNearSeg d p1 p2 cr = circOnSeg p1 p2 (_crPos cr) (_crRad cr + d)
|
||||
|
||||
crNearPoint :: Float -> Point2 -> Creature -> Bool
|
||||
crNearPoint d p cr = dist (_crPos cr) p < d + _crRad cr
|
||||
|
||||
Reference in New Issue
Block a user