DoopelPonger
Classes | Public Member Functions | Public Attributes | List of all members
CoopActionPatternProvider Class Reference

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...

Inheritance diagram for CoopActionPatternProvider:
Inheritance graph
[legend]
Collaboration diagram for CoopActionPatternProvider:
Collaboration graph
[legend]

Public Member Functions

override void Init ()
 Set up anything needed to create the action pattern. More...
 
override CoopBaseActionPattern GetActionPattern ()
 

Public Attributes

CoopActionPatternProbability [] patternProbabilities
 

Detailed Description

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.

Member Function Documentation

◆ GetActionPattern()

override CoopBaseActionPattern CoopActionPatternProvider.GetActionPattern ( )
virtual
Returns
The action pattern that should be used.

Implements CoopAbstractActionPatternProvider.

◆ Init()

override void CoopActionPatternProvider.Init ( )
virtual

Set up anything needed to create the action pattern.

Implements CoopAbstractActionPatternProvider.

Member Data Documentation

◆ patternProbabilities

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.


The documentation for this class was generated from the following file: