aztecs-0.8.0: A modular game engine and Entity-Component-System (ECS) for Haskell.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Aztecs.Hierarchy

Synopsis

Documentation

newtype Parent Source #

Constructors

Parent 

Fields

Instances

Instances details
Component Parent Source # 
Instance details

Defined in Aztecs.Hierarchy

Associated Types

type StorageT Parent Source #

Generic Parent Source # 
Instance details

Defined in Aztecs.Hierarchy

Associated Types

type Rep Parent :: Type -> Type #

Methods

from :: Parent -> Rep Parent x #

to :: Rep Parent x -> Parent #

Show Parent Source # 
Instance details

Defined in Aztecs.Hierarchy

NFData Parent Source # 
Instance details

Defined in Aztecs.Hierarchy

Methods

rnf :: Parent -> () #

Eq Parent Source # 
Instance details

Defined in Aztecs.Hierarchy

Methods

(==) :: Parent -> Parent -> Bool #

(/=) :: Parent -> Parent -> Bool #

Ord Parent Source # 
Instance details

Defined in Aztecs.Hierarchy

type StorageT Parent Source # 
Instance details

Defined in Aztecs.Hierarchy

type Rep Parent Source # 
Instance details

Defined in Aztecs.Hierarchy

type Rep Parent = D1 ('MetaData "Parent" "Aztecs.Hierarchy" "aztecs-0.8.0-5YWGoxTs0Vw9iciqZAe9GO" 'True) (C1 ('MetaCons "Parent" 'PrefixI 'True) (S1 ('MetaSel ('Just "unParent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EntityID)))

newtype Children Source #

Constructors

Children 

Instances

Instances details
Component Children Source # 
Instance details

Defined in Aztecs.Hierarchy

Associated Types

type StorageT Children Source #

Monoid Children Source # 
Instance details

Defined in Aztecs.Hierarchy

Semigroup Children Source # 
Instance details

Defined in Aztecs.Hierarchy

Generic Children Source # 
Instance details

Defined in Aztecs.Hierarchy

Associated Types

type Rep Children :: Type -> Type #

Methods

from :: Children -> Rep Children x #

to :: Rep Children x -> Children #

Show Children Source # 
Instance details

Defined in Aztecs.Hierarchy

NFData Children Source # 
Instance details

Defined in Aztecs.Hierarchy

Methods

rnf :: Children -> () #

Eq Children Source # 
Instance details

Defined in Aztecs.Hierarchy

Ord Children Source # 
Instance details

Defined in Aztecs.Hierarchy

type StorageT Children Source # 
Instance details

Defined in Aztecs.Hierarchy

type Rep Children Source # 
Instance details

Defined in Aztecs.Hierarchy

type Rep Children = D1 ('MetaData "Children" "Aztecs.Hierarchy" "aztecs-0.8.0-5YWGoxTs0Vw9iciqZAe9GO" 'True) (C1 ('MetaCons "Children" 'PrefixI 'True) (S1 ('MetaSel ('Just "unChildren") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set EntityID))))

data Hierarchy a Source #

Constructors

Node 

Instances

Instances details
Foldable Hierarchy Source # 
Instance details

Defined in Aztecs.Hierarchy

Methods

fold :: Monoid m => Hierarchy m -> m #

foldMap :: Monoid m => (a -> m) -> Hierarchy a -> m #

foldMap' :: Monoid m => (a -> m) -> Hierarchy a -> m #

foldr :: (a -> b -> b) -> b -> Hierarchy a -> b #

foldr' :: (a -> b -> b) -> b -> Hierarchy a -> b #

foldl :: (b -> a -> b) -> b -> Hierarchy a -> b #

foldl' :: (b -> a -> b) -> b -> Hierarchy a -> b #

foldr1 :: (a -> a -> a) -> Hierarchy a -> a #

foldl1 :: (a -> a -> a) -> Hierarchy a -> a #

toList :: Hierarchy a -> [a] #

null :: Hierarchy a -> Bool #

length :: Hierarchy a -> Int #

elem :: Eq a => a -> Hierarchy a -> Bool #

maximum :: Ord a => Hierarchy a -> a #

minimum :: Ord a => Hierarchy a -> a #

sum :: Num a => Hierarchy a -> a #

product :: Num a => Hierarchy a -> a #

Traversable Hierarchy Source # 
Instance details

Defined in Aztecs.Hierarchy

Methods

traverse :: Applicative f => (a -> f b) -> Hierarchy a -> f (Hierarchy b) #

sequenceA :: Applicative f => Hierarchy (f a) -> f (Hierarchy a) #

mapM :: Monad m => (a -> m b) -> Hierarchy a -> m (Hierarchy b) #

sequence :: Monad m => Hierarchy (m a) -> m (Hierarchy a) #

Functor Hierarchy Source # 
Instance details

Defined in Aztecs.Hierarchy

Methods

fmap :: (a -> b) -> Hierarchy a -> Hierarchy b #

(<$) :: a -> Hierarchy b -> Hierarchy a #

foldWithKey :: (EntityID -> a -> b -> b) -> Hierarchy a -> b -> b Source #

mapWithKey :: (EntityID -> a -> b) -> Hierarchy a -> Hierarchy b Source #

mapWithAccum :: (EntityID -> a -> b -> (c, b)) -> b -> Hierarchy a -> Hierarchy c Source #

hierarchies :: (ArrowQueryReader q, ArrowDynamicQueryReader q, ArrowReaderSystem q arr) => q i a -> arr i [Hierarchy a] Source #

Build all hierarchies of parents to children with the given query.

newtype ParentState Source #

Constructors

ParentState 

Instances

Instances details
Component ParentState Source # 
Instance details

Defined in Aztecs.Hierarchy

Associated Types

type StorageT ParentState Source #

Generic ParentState Source # 
Instance details

Defined in Aztecs.Hierarchy

Associated Types

type Rep ParentState :: Type -> Type #

Show ParentState Source # 
Instance details

Defined in Aztecs.Hierarchy

NFData ParentState Source # 
Instance details

Defined in Aztecs.Hierarchy

Methods

rnf :: ParentState -> () #

type StorageT ParentState Source # 
Instance details

Defined in Aztecs.Hierarchy

type Rep ParentState Source # 
Instance details

Defined in Aztecs.Hierarchy

type Rep ParentState = D1 ('MetaData "ParentState" "Aztecs.Hierarchy" "aztecs-0.8.0-5YWGoxTs0Vw9iciqZAe9GO" 'True) (C1 ('MetaCons "ParentState" 'PrefixI 'True) (S1 ('MetaSel ('Just "unParentState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EntityID)))

newtype ChildState Source #

Constructors

ChildState 

Instances

Instances details
Component ChildState Source # 
Instance details

Defined in Aztecs.Hierarchy

Associated Types

type StorageT ChildState Source #

Generic ChildState Source # 
Instance details

Defined in Aztecs.Hierarchy

Associated Types

type Rep ChildState :: Type -> Type #

Show ChildState Source # 
Instance details

Defined in Aztecs.Hierarchy

NFData ChildState Source # 
Instance details

Defined in Aztecs.Hierarchy

Methods

rnf :: ChildState -> () #

type StorageT ChildState Source # 
Instance details

Defined in Aztecs.Hierarchy

type Rep ChildState Source # 
Instance details

Defined in Aztecs.Hierarchy

type Rep ChildState = D1 ('MetaData "ChildState" "Aztecs.Hierarchy" "aztecs-0.8.0-5YWGoxTs0Vw9iciqZAe9GO" 'True) (C1 ('MetaCons "ChildState" 'PrefixI 'True) (S1 ('MetaSel ('Just "unChildState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Set EntityID))))