Factor out Behavior-related modules.

parent eb4b7b81
......@@ -15,9 +15,9 @@ import Data.Ratio
import Roguestar.Lib.Tool
import Roguestar.Lib.ToolData
import Control.Monad.Error
import Roguestar.Lib.Combat
import Roguestar.Lib.Behavior.Combat
import Roguestar.Lib.Activate
import Roguestar.Lib.Travel
import Roguestar.Lib.Behavior.Travel
import Roguestar.Lib.TravelData
import Roguestar.Lib.Creature
import Roguestar.Lib.CreatureData
......@@ -26,8 +26,8 @@ import Roguestar.Lib.PlaneVisibility
import Data.List
import Control.Monad.Maybe
import Roguestar.Lib.TerrainData
import Roguestar.Lib.Make
import Roguestar.Lib.Construction
import Roguestar.Lib.Behavior.Make
import Roguestar.Lib.Behavior.Construction
import Roguestar.Lib.Building
import Roguestar.Lib.Reference
import Roguestar.Lib.DetailedLocation
......
{-# LANGUAGE PatternGuards, FlexibleContexts #-}
module Roguestar.Lib.Combat
module Roguestar.Lib.Behavior.Combat
(AttackModel,
meleeAttackModel,
rangedAttackModel,
......@@ -16,7 +16,7 @@ import Roguestar.Lib.ToolData
import Control.Monad.Error
import Roguestar.Lib.Facing
import Data.Maybe
import Roguestar.Lib.DeviceActivation
import Roguestar.Lib.Behavior.DeviceActivation
import Roguestar.Lib.Contact
import Roguestar.Lib.Plane as Plane
import Roguestar.Lib.DetailedLocation
......
{-# LANGUAGE ScopedTypeVariables #-}
-- | All construction (terrain clearing, etc) actions that a creature might take.
module Roguestar.Lib.Construction
module Roguestar.Lib.Behavior.Construction
(modifyFacingTerrain,
clearTerrain)
where
......
module Roguestar.Lib.DeviceActivation
module Roguestar.Lib.Behavior.DeviceActivation
(DeviceActivationOutcomeType(..),
DeviceActivationOutcome(..),
resolveDeviceActivation)
......
module Roguestar.Lib.Make
module Roguestar.Lib.Behavior.Make
(module Roguestar.Lib.MakeData,
MakeOutcome,
resolveMake,
......
{-# LANGUAGE ScopedTypeVariables #-}
module Roguestar.Lib.Travel
module Roguestar.Lib.Behavior.Travel
(stepCreature,
turnCreature,
ClimbOutcome,
......
......@@ -58,7 +58,7 @@ library
Roguestar.Lib.Tool,
Roguestar.Lib.Substances,
Roguestar.Lib.HierarchicalDatabase,
Roguestar.Lib.Travel,
Roguestar.Lib.Behavior.Travel,
Roguestar.Lib.ToolData,
Roguestar.Lib.CharacterData,
Roguestar.Lib.Creature,
......@@ -68,7 +68,7 @@ library
Roguestar.Lib.Species,
Roguestar.Lib.Position,
Roguestar.Lib.TerrainData,
Roguestar.Lib.Combat,
Roguestar.Lib.Behavior.Combat,
Roguestar.Lib.Tests,
Roguestar.Lib.DBData,
Roguestar.Lib.GridRayCaster,
......@@ -85,11 +85,11 @@ library
Roguestar.Lib.PlayerState,
Roguestar.Lib.MakeData,
Roguestar.Lib.DBErrorFlag,
Roguestar.Lib.Construction,
Roguestar.Lib.Make,
Roguestar.Lib.Behavior.Construction,
Roguestar.Lib.Behavior.Make,
Roguestar.Lib.Activate,
Roguestar.Lib.Contact,
Roguestar.Lib.DeviceActivation,
Roguestar.Lib.Behavior.DeviceActivation,
Roguestar.Lib.Planet,
Roguestar.Lib.PlanetData,
Roguestar.Lib.Logging,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment