Exemplo n.º 1
0
    public SpecialFace(FaceInfo infoRef)
    {
        Level      = infoRef.Level;
        Face       = infoRef.Face;
        TextColour = infoRef.TextColour;
        DieColour  = infoRef.DieColour;
        Name       = infoRef.Name;

        //TODO
        Special = null;

        Image = SpriteLoader.Get(infoRef.SpriteName);
    }
Exemplo n.º 2
0
    public PlayFace(FaceInfo infoRef)
    {
        Level      = infoRef.Level;
        Face       = infoRef.Face;
        TextColour = infoRef.TextColour;
        DieColour  = infoRef.DieColour;
        Name       = infoRef.Name;

        Attack    = infoRef.Attack;
        Toughness = infoRef.Toughness;

        Image = SpriteLoader.Get(infoRef.SpriteName);
    }
Exemplo n.º 3
0
 public static DiceFace Get(string name)
 {
     if (Faces.ContainsKey(name))
     {
         return(Faces[name]);
     }
     return(new PlayFace(1, 1, 1, FaceType.Play, Color.black, Color.magenta, "DEFAULT-1", SpriteLoader.Get("DebugCat")));
 }