(define UNIT_LEGIONAR      5)

(define_menu    MENU_LEGIONAR
        (button 
                (icon           ICON_MOVE)
                (state          NORMAL)
                (type           BUTTON)
                (command        MOVE)
        )
        (button 
                (icon           ICON_ATACK)
                (state          NORMAL)
                (type           BUTTON)
                (command        FIGHT)
        )
        (button 
                (icon           ICON_RETREAT)
                (state          DISABLED)
                (type           BUTTON)
                (command        NONE)
        )
        (button 
                (icon           ICON_PATROL)
                (state          DISABLED)
                (type           BUTTON)
                (command        NONE)
        )
        (button 
                (icon           ICON_GUARD)
                (state          DISABLED)
                (type           BUTTON)
                (command        NONE)
        )
;~~~~~~~~~~~~~~~~~~~~~~~~
;       (button 
;               (icon           ICON_ATACK2)
;               (state          NORMAL)
;               (type           BUTTON)
;               (command        THROW_WEAPON)
;               (object         LANCE-1)
;       )
;~~~~~~~~~~~~~~~~~~~~~~~~
        (button 
                (icon           ICON_ATACK2)
                (state          NORMAL)
                (type           BUTTON)
                (command        THROW_ROCK)
                (object         BULLET-1)
        )
        (button
                (icon           ICON_ACTION)
                (state          DISABLED)
                (type           BUTTON)
                (command        NONE)
        )
        (button
                (icon           ICON_LADDER)
                (state          DISABLED)
                (type           BUTTON)
                (command        NONE)
        )
        (button 
                (icon           CANCEL)
                (state          NORMAL)
                (type           BUTTON)
                (command        STOP)
        )
)

(define_unit
        (id             UNIT_LEGIONAR)
        (ai_type        AI_WARRIOR)
        (name           "Legionar roman")
	(portrait	".\\data\\graphics\\roman\\portrait\\legionar_roman.bmp")
	(icon		LEGIONAR-MIC)
        (options        (+ O_FLANK O_STAY O_LADD O_GROUND_ATACK O_DIE2 O_THROW_ROCK O_PUSH))
        (price1         250)
        (price2         100)
        (price3         10)
        (view           9)
	(min_range	3)
	(max_range	9)
	(radius		12)
        (build_time     2000)
        (speed          40)
        (armor          50)
	(damage		5)
	(weapon1	LANCE-1)
	(weapon2	BULLET-1)
        (grp            ".\\data\\graphics\\roman\\units\\legionar.spr")
        (palette        ".\\data\\graphics\\roman\\units\\legionar.p24")
        (sounds         SOUNDS_LEGIONAR)
        (menu           MENU_LEGIONAR)
        (size           1)
        (directions     5)                     

        (animation ANIMATION_MOVE up        (seq 29 35))
        (animation ANIMATION_MOVE up-left   (seq 22 28))
        (animation ANIMATION_MOVE left      (seq 15 21))
        (animation ANIMATION_MOVE down-left (seq 8  14))
        (animation ANIMATION_MOVE down      (seq 1  7 ))

        (animation ANIMATION_STAY up        (seq 437 444) (seq 440 444) (seq 440 444)  439 438 437)
        (animation ANIMATION_STAY up-left   (seq 437 444) (seq 440 444) (seq 440 444)  439 438 437)
        (animation ANIMATION_STAY left      (seq 437 444) (seq 440 444) (seq 440 444)  439 438 437)
        (animation ANIMATION_STAY down-left (seq 437 444) (seq 440 444) (seq 440 444)  439 438 437)
        (animation ANIMATION_STAY down      (seq 437 444) (seq 440 444) (seq 440 444)  439 438 437)

	(animation ANIMATION_FLANK_FRONT up 	  	(seq 134 140))
	(animation ANIMATION_FLANK_FRONT up-left 	(seq 127 133))
	(animation ANIMATION_FLANK_FRONT left 		(seq 120 126))
	(animation ANIMATION_FLANK_FRONT down-left	(seq 113 119))
	(animation ANIMATION_FLANK_FRONT down		(seq 106 112))

	(animation ANIMATION_FLANK_MIDDLE up 	  	(seq 99 105))
	(animation ANIMATION_FLANK_MIDDLE up-left 	(seq 92 98))
	(animation ANIMATION_FLANK_MIDDLE left 		(seq 85 91))
	(animation ANIMATION_FLANK_MIDDLE down-left	(seq 78 84))
	(animation ANIMATION_FLANK_MIDDLE down		(seq 71 77))

	(animation ANIMATION_FLANK_LEFT up 	  	(seq 64 70))
	(animation ANIMATION_FLANK_LEFT up-left 	(seq 57 63))
	(animation ANIMATION_FLANK_LEFT left 		(seq 50 56))
	(animation ANIMATION_FLANK_LEFT down-left	(seq 43 49))
	(animation ANIMATION_FLANK_LEFT down		(seq 36 42))

	(animation ANIMATION_FLANK_RIGHT up 	  	(seq 169 175))
	(animation ANIMATION_FLANK_RIGHT up-left 	(seq 162 168))
	(animation ANIMATION_FLANK_RIGHT left 		(seq 155 161))
	(animation ANIMATION_FLANK_RIGHT down-left	(seq 148 154))
	(animation ANIMATION_FLANK_RIGHT down		(seq 141 147))

        (animation ANIMATION_DIE up        (seq 471 478))
        (animation ANIMATION_DIE up-left   (seq 471 478))
        (animation ANIMATION_DIE left      (seq 471 478))
        (animation ANIMATION_DIE down-left (seq 463 470))
        (animation ANIMATION_DIE down      (seq 463 470))

        (animation ANIMATION_DIE2 up        (seq 471 478))
        (animation ANIMATION_DIE2 up-left   (seq 471 478))
        (animation ANIMATION_DIE2 left      (seq 471 478))
        (animation ANIMATION_DIE2 down-left (seq 445 453))
        (animation ANIMATION_DIE2 down      (seq 445 453))

        (animation ANIMATION_LADD up        (seq 391 394))
        (animation ANIMATION_LADD up-left   (seq 391 394))
        (animation ANIMATION_LADD down-left (seq 384 390))
        (animation ANIMATION_LADD down      (seq 384 390))

        (animation ANIMATION_HIGH_FIGHT up        404 405 406)
        (animation ANIMATION_HIGH_FIGHT up-left   404 405 406)
;       pe mijloc nu exista animatie ...        
        (animation ANIMATION_HIGH_FIGHT down-left 401 402 403)
        (animation ANIMATION_HIGH_FIGHT down      401 402 403)

        (animation ANIMATION_RIGHT_HIT  up              (seq 333 352))
        (animation ANIMATION_RIGHT_HIT  up-left         (seq 321 330))
        (animation ANIMATION_RIGHT_HIT  left            (seq 299 308))
        (animation ANIMATION_RIGHT_HIT  down-left       (seq 277 286))
        (animation ANIMATION_RIGHT_HIT  down            (seq 255 264))

        (animation ANIMATION_TOP_HIT    up              (seq 337 342))
        (animation ANIMATION_TOP_HIT    up-left         (seq 315 320))
        (animation ANIMATION_TOP_HIT    left            (seq 293 298))
        (animation ANIMATION_TOP_HIT    down-left       (seq 271 276))
        (animation ANIMATION_TOP_HIT    down            (seq 249 254))

        (animation ANIMATION_FRONT_HIT  up              (seq 353 355))
        (animation ANIMATION_FRONT_HIT  up-left         (seq 331 333))
        (animation ANIMATION_FRONT_HIT  left            (seq 309 311))
        (animation ANIMATION_FRONT_HIT  down-left       (seq 287 289))
        (animation ANIMATION_FRONT_HIT  down            (seq 265 267))

        (animation ANIMATION_DEFENSE    up              (seq 334 336))
        (animation ANIMATION_DEFENSE    up-left         (seq 312 314))
        (animation ANIMATION_DEFENSE    left            (seq 290 292))
        (animation ANIMATION_DEFENSE    down-left       (seq 268 270))
        (animation ANIMATION_DEFENSE    down            (seq 246 248))

        (animation ANIMATION_THROW_ROCK up        (seq 363 369))
        (animation ANIMATION_THROW_ROCK up-left   (seq 363 369))
        (animation ANIMATION_THROW_ROCK down-left (seq 356 362))
        (animation ANIMATION_THROW_ROCK down      (seq 356 362))

        (animation ANIMATION_THROW_WEAPON up            (seq 431 436))
        (animation ANIMATION_THROW_WEAPON up-left       (seq 425 430))
        (animation ANIMATION_THROW_WEAPON left          (seq 419 424))
        (animation ANIMATION_THROW_WEAPON down-left     (seq 413 418))
        (animation ANIMATION_THROW_WEAPON down          (seq 407 412))

        (animation ANIMATION_PUSH    up              (seq 204 210))
        (animation ANIMATION_PUSH    up-left         (seq 197 203))
        (animation ANIMATION_PUSH    left            (seq 190 196))
        (animation ANIMATION_PUSH    down-left       (seq 183 189))
        (animation ANIMATION_PUSH    down            (seq 176 182))

        (animation ANIMATION_PULL    up              (seq 239 245))
        (animation ANIMATION_PULL    up-left         (seq 232 238))
        (animation ANIMATION_PULL    left            (seq 225 231))
        (animation ANIMATION_PULL    down-left       (seq 218 224))
        (animation ANIMATION_PULL    down            (seq 211 217))
)
