//String return functions private string tile_type_to_string(tile_type target_type) { switch (target_type) { case tile_type.Deep_Water: return("DWr"); case tile_type.Dirt_Floor: return("DF"); case tile_type.Dirt_Wall: return("DW"); case tile_type.Gravel: return("GV"); case tile_type.Shallow_Water: return("SWr"); case tile_type.Stone_Floor: return("SF"); case tile_type.Stone_Wall: return("SW"); case tile_type.Shallow_Blood: return("SB"); case tile_type.Deep_Blood: return("DB"); } return("V"); }
private void picture_brush_picture_Click(object sender, EventArgs e) { PictureBox pb = (PictureBox)sender; string tagData = pb.Tag.ToString(); current_brush_mode = brush_mode.Tiles; switch (tagData) { case "StoneFloor": current_tile = tile_type.Stone_Floor; current_tile_img = stn_floor_brush.Image; break; case "StoneWall": current_tile = tile_type.Stone_Wall; current_tile_img = stn_wall_brush.Image; break; case "Gravel": current_tile = tile_type.Gravel; current_tile_img = gravel_brush.Image; break; case "DirtFloor": current_tile = tile_type.Dirt_Floor; current_tile_img = dirt_floor_brush.Image; break; case "DirtWall": current_tile = tile_type.Dirt_Wall; current_tile_img = dirt_wall_brush.Image; break; case "ShallowWater": current_tile = tile_type.Shallow_Water; current_tile_img = shallow_water_brush.Image; break; case "DeepWater": current_tile = tile_type.Deep_Water; current_tile_img = deep_water_brush.Image; break; case "ShallowBlood": current_tile = tile_type.Shallow_Blood; current_tile_img = shallow_blood_brush.Image; break; case "VoidTile": current_tile = tile_type.Void; current_tile_img = void_tile_brush.Image; break; } }
public void SetType(tile_type _type) { Type = _type; }
public Node(tile_type _type, Vector3 _worldPos, Vector3 _tilePos) { Type = _type; worldPosition = _worldPos; tilePosition = _tilePos; }
//String return functions private string tile_type_to_string(tile_type target_type) { switch (target_type) { case tile_type.Deep_Water: return "DWr"; case tile_type.Dirt_Floor: return "DF"; case tile_type.Dirt_Wall: return "DW"; case tile_type.Gravel: return "GV"; case tile_type.Shallow_Water: return "SWr"; case tile_type.Stone_Floor: return "SF"; case tile_type.Stone_Wall: return "SW"; case tile_type.Shallow_Blood: return "SB"; case tile_type.Deep_Blood: return "DB"; case tile_type.Shallow_Sewage: return "SSwr"; case tile_type.Deep_Sewage: return "DSwr"; case tile_type.Entrance: return "EN"; case tile_type.Exit: return "EX"; case tile_type.Rubble_Floor: return "RF"; } return "V"; }
//Click events private void picture_brush_picture_Click(object sender, EventArgs e) { PictureBox pb = (PictureBox)sender; string tagData = pb.Tag.ToString(); current_brush_mode = brush_mode.Tiles; current_tile_img = pb.Image; switch (tagData) { case "StoneFloor": current_tile = tile_type.Stone_Floor; break; case "StoneWall": current_tile = tile_type.Stone_Wall; break; case "Gravel": current_tile = tile_type.Gravel; break; case "DirtFloor": current_tile = tile_type.Dirt_Floor; break; case "DirtWall": current_tile = tile_type.Dirt_Wall; break; case "ShallowWater": current_tile = tile_type.Shallow_Water; break; case "DeepWater": current_tile = tile_type.Deep_Water; break; case "ShallowBlood": current_tile = tile_type.Shallow_Blood; break; case "VoidTile": current_tile = tile_type.Void; break; case "Shallow_Sewage": current_tile = tile_type.Shallow_Sewage; break; case "Deep_Sewage": current_tile = tile_type.Deep_Sewage; break; case "Entrance": current_tile = tile_type.Entrance; break; case "Exit": current_tile = tile_type.Exit; break; case "RubbleFloor": current_tile = tile_type.Rubble_Floor; break; } }