Exemplo n.º 1
0
        public override void WillTryStopAbility()
        {
            Debug.Log("STOPPING AIM ABILITY");
            TopDown ucl = (TopDown)m_GameObject.GetComponent <UltimateCharacterLocomotion>().ActiveMovementType;

            ucl.LookInMoveDirection = true;
        }
Exemplo n.º 2
0
        public override bool AbilityWillStart()
        {
            Debug.Log("STARTING AIM ABILITY");
            TopDown ucl = (TopDown)m_GameObject.GetComponent <UltimateCharacterLocomotion>().ActiveMovementType;

            ucl.LookInMoveDirection = false;


            return(true);
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            PureFactory        factory = new PureFactory();
            ATerm              t       = factory.parse("f(g(1,h(2,3)),i(4,5),j(6,k(7,[8,9])))");
            ATermLeavesCounter v       = new ATermLeavesCounter();
            TopDown            td      = new TopDown(v);

            td.visit(t);
            Console.Out.WriteLine(v.Count);
        }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            if (args is null)
            {
                throw new ArgumentNullException(nameof(args));
            }

            Dictionary <string, bool> memo = new Dictionary <string, bool>();

            Console.WriteLine(TopDown.CanConstruct("catsandog", new List <string> {
                "cats", "dog", "sand", "and", "cat"
            }, memo));
        }
Exemplo n.º 5
0
 public Zen3()
 {
     monitoringConfigs     = new MonitoringConfig[12];
     monitoringConfigs[0]  = new BpuMonitoringConfig(this);
     monitoringConfigs[1]  = new FetchConfig(this);
     monitoringConfigs[2]  = new DCFillConfig(this);
     monitoringConfigs[3]  = new HwPrefetchConfig(this);
     monitoringConfigs[4]  = new SwPrefetchConfig(this);
     monitoringConfigs[5]  = new FlopsConfig(this);
     monitoringConfigs[6]  = new LocksConfig(this);
     monitoringConfigs[7]  = new DispatchStallConfig(this);
     monitoringConfigs[8]  = new DispatchStallConfig1(this);
     monitoringConfigs[9]  = new L2Config(this);
     monitoringConfigs[10] = new TopDown(this);
     monitoringConfigs[11] = new PmcMonitoringConfig(this);
     architectureName      = "Zen 3";
 }
Exemplo n.º 6
0
        static void Main(string[] args)
        {
            if (args is null)
            {
                throw new ArgumentNullException(nameof(args));
            }

            List <int> numbers = new List <int>()
            {
                5, 6, 5, 1
            };
            Dictionary <int, List <int> > memo = new Dictionary <int, List <int> >();
            int target = 11;

            List <int> result = TopDown.BestSum(target, numbers, memo);

            Console.WriteLine(string.Join(" ", result.ToArray()));
        }
Exemplo n.º 7
0
        // throws jjtraveler.VisitFailure
        public virtual void testTopDown()
        {
            Identity id = new Identity();
            Logger expected = new Logger(id, new IVisitable[]{n4, n3, n0, n1, n2} );

            IVisitor  visitor = new TopDown( logVisitor(id) );

            IVisitable nodeReturned = visitor.visit(n4);
            Assertion.AssertEquals(expected, logger);
            Assertion.AssertEquals(n4, nodeReturned);
        }