Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    delegate term incorrect? - Resolved -

    XML Options Browser
    2
    10
    2156
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Mahks
      Mahks last edited by Mahks

      In the POS2 comments within <sequence> it refers to delegate several times where I think it means 'name'

      ie;
      (default is true if delegate ends with "CombatMove" but not "NonCombatMove")

      General_Zod 1 Reply Last reply Reply Quote 0
      • General_Zod
        General_Zod Moderators @Mahks last edited by General_Zod

        @mahks

        Technically "delegate refers to both lines below.

         <delegate name="purchase" javaClass="games.strategy.triplea.delegate.PurchaseDelegate" display="Purchase Units"/>
        
        <!-- The line above refers to the line below in via "purchase", and this tells game engine what phases (delegates) may be used in game. -->
        
        
        <!-- The  line in below refers to the line above in via "purchase", and this tells game engine what nation specific phases (delegates) are part of the game sequence. -->
        
         <step name="italianPurchase" delegate="purchase" player="Italians"/>
        
        1 Reply Last reply Reply Quote 0
        • Mahks
          Mahks last edited by

          But there is no "NonCombatMove" delegate.

          Both the "...CombatMove" step & "...NonCombatMove" step use
          <delegate name="move" javaClass="games.strategy.triplea.delegate.MoveDelegate" display="Combat Move"/>

          I think it is referring to the STEP name as in:
          <step name="russianNonCombatMove" delegate="move" player="Russians" display="Non Combat Move"/>

          General_Zod 1 Reply Last reply Reply Quote 0
          • General_Zod
            General_Zod Moderators @Mahks last edited by

            @mahks

            Correct, "CombatMove" and "NonCombatMove" (steps) use the same delegate at their core, (below) which is named delegate name="move". Additional behaviors are added to this core move delegate either via separate "step properties" or via hardcoded "step names" such as NonCombatMove.

            <delegate name="move" javaClass="games.strategy.triplea.delegate.MoveDelegate" display="Any Move"/>
            
            1 Reply Last reply Reply Quote 0
            • Mahks
              Mahks last edited by

              Just to be sure then, POS2 does mean 'name' not 'delegate'.

              General_Zod 1 Reply Last reply Reply Quote 0
              • General_Zod
                General_Zod Moderators @Mahks last edited by

                @mahks

                It looks like they use the term delegate loosely, but it will refer to either "delegate name" or "step name" since both are linked.

                Post the text in question, maybe then I can tell you specifically which they are trying to refer to.

                1 Reply Last reply Reply Quote 0
                • Mahks
                  Mahks last edited by Mahks

                  It occurs in the <sequence> comments
                  See under "For any "Move" delegate (such as MoveDelegate or SpecialMoveDelegate or etc):"

                  combatMove = true/false do we have combat after this phase? this will affect movement validation and certain unit property recordings such as submerged, amphibious, etc. (default is true if delegate ends with "CombatMove" but not "NonCombatMove")

                  I think it is referring to the step name
                  ie;
                  <step name="chineseNonCombatMove" delegate="move" player="Chinese" display="Non Combat Move"/>

                  the bold text above should read step name ends with

                  Especially since there is no "NonCombatMove" delegate...

                  General_Zod 1 Reply Last reply Reply Quote 0
                  • General_Zod
                    General_Zod Moderators @Mahks last edited by

                    @mahks

                    I agree, looks like those refer to the step names specifically.

                    General_Zod 1 Reply Last reply Reply Quote 0
                    • General_Zod
                      General_Zod Moderators @General_Zod last edited by General_Zod

                      @Mahks

                      Also in same sequence sections this line should read "step name" rather than just "name".

                      <!-- It is very important that the "name" ends with the correct phrase, or else the game will not work properly.
                      Please end with ("xx" = faction name): xxBid, xxBidPlace, xxTech, xxPurchase, xxCombatMove, xxBattle, xxNonCombatMove, xxPlace, xxTechActivation, xxEndTurn, xxPolitics, xxUserActions -->

                      1 Reply Last reply Reply Quote 0
                      • Mahks
                        Mahks last edited by

                        Got it Thanks! 👍🏼

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums