note
	description: "[
		The Sequence of Play step in VITP in which the Allied
		player moves patrollers, flips raiders, and repairs ships.
		]"
	author:    "Jimmy J. Johnson"
	date:      "11/11/23"
	copyright: "Copyright (c) 2023, Jimmy J. Johnson"
	license:   "Eiffel Forum v2 (http://www.eiffel.com/licensing/forum.txt)"

class
	ALLIED_MOVE_PATROLLERS_STEP

inherit

	GAME_STEP
		redefine
			player,
			is_completed,
			execute
		end

create
	make

feature -- Access

	name: STRING
			-- Displayable name of Current step
		do
			Result := "Move Patrollers, Flip Raiders, Repair Ships"
		end

	player: like {NATIONALITY_CONSTANTS}.Japanese
			-- The player to which this step applies
		do
			Result := {NATIONALITY_CONSTANTS}.Allied
		end

feature -- Status report

	is_completed: BOOLEAN
			-- Are all actions to be accomplished in this
			-- state finished, allowing `advance' to the
			-- next state?
		local
			sop: VITP_SEQUENCE_OF_PLAY
			p: like {NATIONALITY_CONSTANTS}.japanese
			i: INTEGER
			tab: VITP_TABLE [ATTACK_UNIT]
			u: ATTACK_UNIT
		do
			print (generating_type.out + ".is_completed:  fix m!! %N")

		end

feature -- Basic operations

	execute
			-- Perform automatic actions such as moving reinforments
			-- from the SOP Chart to the game board.
		do
		end

end
