non working condition

This commit is contained in:
Shaun Kerr 2019-05-16 16:04:32 +12:00
parent 6727bdeb1d
commit 84f3302418
3 changed files with 55 additions and 1 deletions

BIN
.Types.hs.swp Normal file

Binary file not shown.

33
Main.hs Normal file
View File

@ -0,0 +1,33 @@
data CardSym = Card1 -- | Card2 | Card3 | Card4 etc etc
data TypeSym = Angel
| Character
| MainCharacter
| Instrumentality
| Battle
| Put
| Drama
| Eva
data CardInfo = CardInfo
{ ciName :: String
, ciFaction :: Faction
, ci -- etc etc etc etc etc
}
data CardMeta = CardMeta
{ cmOwner :: PlayerId
}
type CardId = Integer
type PlayerId = Integer
class SymLookup where
getSym :: CardId -> CardSym
class MetaLookup where
getMeta :: CardId -> CardMeta
class CardLookup where
getCard :: CardSym -> CardInfo

View File

@ -1,8 +1,29 @@
module State where
-- needed state:
-- NeoTokyo groups
-- Put cards
-- id counter
--
--
--
--
type Group = [MainCharacter]
type NeoTokyo = [Group]
type Downed = [MainCharacter]
type BoardState = (NeoTokyo, Downed)
type Angels = [Angel]
type BoardState = (NeoTokyo, Downed, Angels)
data MainCharacter = Asuka | Shinji | Rei | Misato | Ritsuko | Gendo
deriving (Show, Eq)
data Angel = Sachial | Shamshel | Ramiel | Gaghiel | Israfel
| Sandalphon | Matariel | Sahaquiel | Treul | Leliel
| Bardiel | Zeruel | Arael | Armisael | Kaworu | Man | Lillith | Adam
data Card = MainCharacter | Angel | Eva | Put | Battle | Instrumentality | Character
type Deck = [Card]
type Hand = [Card]
type Discard = [Card]
type Player = (String, Hand, Deck, Discard, Instrumentality)
type Players = [Player]