cityingredientfactory.java
来自「JAVA 工厂方法」· Java 代码 · 共 19 行
JAVA
19 行
package org.su.demo.forge.factory;
import org.su.demo.forge.items.Ingredient.Ore;
import org.su.demo.forge.items.Ingredient.Potion;
import org.su.demo.forge.items.Ingredient.Primal;
/*
* 抽象工厂接口,负责创建原材料
* 运用抽象工厂模式
* 原材料包括 矿石类:Ore
* 源生类:Primal
* 药水类:Potion
*/
public interface CityIngredientFactory {
public Primal createPrimal();
public Ore createOre();
public Potion createPotion();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?