MCPcopy Create free account
hub / github.com/LARG/HFO / createActionGenerator

Method createActionGenerator

src/sample_player.cpp:777–828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

775#include "actgen_action_chain_length_filter.h"
776
777ActionGenerator::ConstPtr
778SamplePlayer::createActionGenerator() const
779{
780 CompositeActionGenerator * g = new CompositeActionGenerator();
781
782 //
783 // shoot
784 //
785 g->addGenerator( new ActGen_RangeActionChainLengthFilter
786 ( new ActGen_Shoot(),
787 2, ActGen_RangeActionChainLengthFilter::MAX ) );
788
789 //
790 // strict check pass
791 //
792 g->addGenerator( new ActGen_MaxActionChainLengthFilter
793 ( new ActGen_StrictCheckPass(), 1 ) );
794
795 //
796 // cross
797 //
798 g->addGenerator( new ActGen_MaxActionChainLengthFilter
799 ( new ActGen_Cross(), 1 ) );
800
801 //
802 // direct pass
803 //
804 // g->addGenerator( new ActGen_RangeActionChainLengthFilter
805 // ( new ActGen_DirectPass(),
806 // 2, ActGen_RangeActionChainLengthFilter::MAX ) );
807
808 //
809 // short dribble
810 //
811 g->addGenerator( new ActGen_MaxActionChainLengthFilter
812 ( new ActGen_ShortDribble(), 1 ) );
813
814 //
815 // self pass (long dribble)
816 //
817 g->addGenerator( new ActGen_MaxActionChainLengthFilter
818 ( new ActGen_SelfPass(), 1 ) );
819
820 //
821 // simple dribble
822 //
823 // g->addGenerator( new ActGen_RangeActionChainLengthFilter
824 // ( new ActGen_SimpleDribble(),
825 // 2, ActGen_RangeActionChainLengthFilter::MAX ) );
826
827 return ActionGenerator::ConstPtr( g );
828}

Callers

nothing calls this directly

Calls 1

addGeneratorMethod · 0.80

Tested by

no test coverage detected