TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    delegate term incorrect? - Resolved -

    Scheduled Pinned Locked Moved XML Options Browser
    10 Posts 2 Posters 4.2k Views 2 Watching
    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.
    • MahksM Offline
      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_ZodG 1 Reply Last reply Reply Quote 0
      • General_ZodG Offline
        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
        • MahksM Offline
          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_ZodG 1 Reply Last reply Reply Quote 0
          • General_ZodG Offline
            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
            • MahksM Offline
              Mahks
              last edited by

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

              General_ZodG 1 Reply Last reply Reply Quote 0
              • General_ZodG Offline
                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
                • MahksM Offline
                  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_ZodG 1 Reply Last reply Reply Quote 0
                  • General_ZodG Offline
                    General_Zod Moderators @Mahks
                    last edited by

                    @mahks

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

                    General_ZodG 1 Reply Last reply Reply Quote 0
                    • General_ZodG Offline
                      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
                      • MahksM Offline
                        Mahks
                        last edited by

                        Got it Thanks! :thumbs_up_medium-light_skin_tone:

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • 1 / 1
                        • First post
                          Last post
                        Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums