本文整理汇总了C#中BeverageType类的典型用法代码示例。如果您正苦于以下问题:C# BeverageType类的具体用法?C# BeverageType怎么用?C# BeverageType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BeverageType类属于命名空间,在下文中一共展示了BeverageType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GobletOfCelebration
public GobletOfCelebration( BeverageType type )
: base(type)
{
LootType = LootType.Blessed;
Weight = 1.0;
Hue = 1158;
}
示例2: MurkyMilk
public MurkyMilk( BeverageType type )
: base( type )
{
Name = "Murky Milk";
Weight = 1.0;
Hue = 2306;
LootType = LootType.Blessed;
}
示例3: BeverageBuyInfo
public BeverageBuyInfo( string name, Type type, BeverageType content, int price, int amount, int itemID, int hue ) : base( name, type, price, amount, itemID, hue )
{
m_Content = content;
if ( type == typeof( Pitcher ) )
Name = (1048128 + (int)content).ToString();
else if ( type == typeof( BeverageBottle ) )
Name = (1042959 + (int)content).ToString();
else if ( type == typeof( Jug ) )
Name = (1042965 + (int)content).ToString();
}
示例4: GetCoffee
/// <summary>
/// Get Coffee given the Beverage Type
/// Is Factory Method
/// </summary>
/// <param name="beverageType"></param>
/// <returns></returns>
public IBeverage GetCoffee(BeverageType beverageType)
{
IBeverage coffee = null;
switch (beverageType)
{
case BeverageType.HouseBlend:
coffee = new SpecialHouseBlend();
break;
case BeverageType.Roast:
coffee = new AmazonRoast();
break;
}
return coffee;
}
示例5: GetCoffee
public IBeverage GetCoffee(StoreType storeType, BeverageType beverageType)
{
IBeverage coffee = null;
switch(storeType)
{
case StoreType.RegularStore :
switch (beverageType)
{
case BeverageType.HouseBlend:
coffee = new HouseBlend();
break;
case BeverageType.Roast:
coffee = new DarkRoast();
break;
}
break;
case StoreType.ExoticStore:
switch (beverageType)
{
case BeverageType.HouseBlend:
coffee = new SpecialHouseBlend();
break;
case BeverageType.Roast:
coffee = new AmazonRoast();
break;
}
break;
}
return coffee;
}
示例6: FillableBvrge
public FillableBvrge(int weight, Type type, BeverageType content)
: base(weight, type)
{
this.m_Content = content;
}
示例7: BeverageBottle
public BeverageBottle( BeverageType type ) : base( type )
{
Weight = 1.0;
}
示例8: GlassMug
public GlassMug( BeverageType type ) : base( type )
{
Weight = 1.0;
}
示例9: PewterMug
public PewterMug( BeverageType type ) : base( type )
{
Weight = 1.0;
}
示例10: Jug
public Jug( BeverageType type ) : base( type )
{
Weight = 1.0;
}
示例11: BaseBeverage
public BaseBeverage( BeverageType type )
{
m_Content = type;
m_Quantity = MaxQuantity;
ItemID = ComputeItemID();
}
示例12: BaseBeverage
public BaseBeverage(BeverageType type)
{
this.m_Content = type;
this.m_Quantity = this.MaxQuantity;
this.ItemID = this.ComputeItemID();
}
示例13: Drink
/// <summary>
/// Constructor for a beverage
/// </summary>
/// <param name="Ingredients"></param>
/// <param name="Instructions"></param>
/// <param name="Name"></param>
/// <param name="Type"></param>
public void Drink(List<Ingredient> Ingredients, List<string> Instructions, string Name, BeverageType Type)
{
}
示例14: GreenGlass
public GreenGlass( BeverageType type ) : base( type )
{
Weight = 1.0;
}
示例15: ConsumeTotal
public static bool ConsumeTotal( Container pack, BeverageType content, int quantity )
{
return ConsumeTotal( pack, typeof( BaseBeverage ), content, quantity );
}