DoopelPonger
|
Uses a list of CoopActionPatternProbability to create a prioritized list of actions to be selected from when Schmitty Doop needs a new pattern to perform. This is not used in the final game, but is hanging around because it was used initially. More...
Public Member Functions | |
override void | Init () |
Set up anything needed to create the action pattern. More... | |
override CoopBaseActionPattern | GetActionPattern () |
Public Attributes | |
CoopActionPatternProbability [] | patternProbabilities |
Uses a list of CoopActionPatternProbability to create a prioritized list of actions to be selected from when Schmitty Doop needs a new pattern to perform. This is not used in the final game, but is hanging around because it was used initially.
The prioritized list gets generated by the probability passed in from the CoopActionPatternProbability and can be thought of the number of spots in the array. For example pattern A has a probability 4 and pattern B has probability 2 so the array would have 6 elements the first 4 being A and then next two being B. Then picking a pattern is just selecting a random number between 0 and 6. In reality, it's not an array of Patterns but an array of PatternRange that contains the same information.
|
virtual |
Implements CoopAbstractActionPatternProvider.
|
virtual |
Set up anything needed to create the action pattern.
Implements CoopAbstractActionPatternProvider.
CoopActionPatternProbability [] CoopActionPatternProvider.patternProbabilities |
The list of patterns with their assigned priorities. This list will get translated to an array of PatternRange in the init method.