예제 #1
0
파일: City.cs 프로젝트: OneOne/trash-2012
 public HouseTile(HouseTile.Type type)
     : base(selectTile(type))
 {
 }
예제 #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 !!!
            }
        }
예제 #3
0
파일: City.cs 프로젝트: OneOne/trash-2012
 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");
     //}
 }