Example #1
0
 public HouseTile(HouseTile.Type type)
     : base(selectTile(type))
 {
 }
Example #2
0
        public static Bitmap FindResource(HouseTile.THouse type)
        {
            switch (type)
            {
                case HouseTile.THouse.Normal:
                    return Properties.Resources.NormalHouse;
                case HouseTile.THouse.Blue:
                    return Properties.Resources.BlueHouseBot;
                case HouseTile.THouse.Red:
                    return Properties.Resources.RedHouseBot;
                case HouseTile.THouse.TrashFirm:
                    return Properties.Resources.DechetterieBottomLeft;
                case HouseTile.THouse.MairieLeft:
                    return Properties.Resources.mairie_bot_left;
                case HouseTile.THouse.MairieMid:
                    return Properties.Resources.mairie_bot_mid;
                case HouseTile.THouse.MairieRight:
                    return Properties.Resources.mairie_bot_right;
                case HouseTile.THouse.HouseFlower:
                    return Properties.Resources.House4_bot;
                case HouseTile.THouse.HousePink:
                    return Properties.Resources.House5_bot;
                case HouseTile.THouse.HouseGreen:
                    return Properties.Resources.House6_bot;
                case HouseTile.THouse.HouseWater:
                    return Properties.Resources.House7_bot;
                case HouseTile.THouse.LabLeft:
                    return Properties.Resources.House8_botleft;
                case HouseTile.THouse.LabRight:
                    return Properties.Resources.House8_botright;
                case HouseTile.THouse.ChurchLeft:
                    return Properties.Resources.Church_botleft;
                case HouseTile.THouse.ChurchRight:
                    return Properties.Resources.Church_botright;
                case HouseTile.THouse.HouseYellow:
                    return Properties.Resources.House9_botleft;

                default:
                    Console.Error.WriteLine("Unhandled animation: " + type);
                    return Properties.Resources.Missing; //FIXME Not the good one !!!
            }
        }
Example #3
0
 private static Bitmap selectTile(HouseTile.Type dir)
 {
     throw new NotImplementedException("House tile icon not ready yet.");
     //switch (dir)
     //{
     //    case Type.Horizontal:
     //        return Resources.TileHouseRoadHorizontal;
     //    case Type.Vertical:
     //        return Resources.TileHouseRoadVertical;
     //    case Type.TopLeft:
     //        return Resources.TileHouseRoadTopLeft;
     //    case Type.TopRight:
     //        return Resources.TileHouseRoadTopRight;
     //    case Type.BottomLeft:
     //        return Resources.TileHouseRoadBottomLeft;
     //    case Type.BottomRight:
     //        return Resources.TileHouseRoadBottomRight;
     //    default:
     //        throw new ArgumentException("Unknown House Type");
     //}
 }