Interface OperationFactory
public interface OperationFactory
Gameplay Operation Factory
- Since:
- 21.8
- Author:
- 渔民小镇
- date:
- 2024-05-12
-
Method Summary
Modifier and TypeMethodDescriptiongetOperationHandler(int operation) Get OperationHandler (Gameplay Operation Business Class)getUserOperationHandler(int operation) Get OperationHandler that the user can operate (Gameplay Operation Business Class)voidmapping(int operation, OperationHandler operationHandler) Associate the operation code with the OperationHandler (Gameplay Operation Business Class)default voidmapping(OperationCode operationCode, OperationHandler operationHandler) Associate the operation code with the OperationHandler (Gameplay Operation Business Class)voidmappingUser(int operation, OperationHandler operationHandler) OperationHandler that the user can operate.default voidmappingUser(OperationCode operationCode, OperationHandler operationHandler) OperationHandler that the user can operate.static OperationFactoryof()Create OperationFactory object (Built-in implementation provided by the framework)optionalOperationHandler(int operation) Get OperationHandler Optional by operation code
-
Method Details
-
getOperationHandler
Get OperationHandler (Gameplay Operation Business Class)- Parameters:
operation- Operation code- Returns:
- Business logic handler corresponding to the operation code
-
getUserOperationHandler
Get OperationHandler that the user can operate (Gameplay Operation Business Class)- Parameters:
operation- Operation code- Returns:
- Gameplay Operation Business Class
-
mapping
Associate the operation code with the OperationHandler (Gameplay Operation Business Class)- Parameters:
operation- Operation codeoperationHandler- Gameplay Operation Business Class
-
mappingUser
OperationHandler that the user can operate. Associate the operation code with the OperationHandler (Gameplay Operation Business Class)- Parameters:
operation- Operation codeoperationHandler- Gameplay Operation Business Class
-
mappingUser
OperationHandler that the user can operate. Associate the operation code with the OperationHandler (Gameplay Operation Business Class)- Parameters:
operationCode- Operation codeoperationHandler- Gameplay Operation Business Class- Since:
- 21.23
-
mapping
Associate the operation code with the OperationHandler (Gameplay Operation Business Class)- Parameters:
operationCode- Operation codeoperationHandler- Gameplay Operation Business Class- Since:
- 21.23
-
optionalOperationHandler
Get OperationHandler Optional by operation code- Parameters:
operation- Operation code- Returns:
- Optional OperationHandler
-
of
Create OperationFactory object (Built-in implementation provided by the framework)- Returns:
- OperationFactory object
-