(define UNIT_SABIER     4)

(define_menu    MENU_SABIER
        (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_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_SABIER)
        (ai_type        AI_WARRIOR)
        (name           "Sabier dac")
	(portrait	".\\data\\graphics\\dac\\portrait\\sabier_dac.bmp")
	(icon		SABIER-MIC)
        (options        (+ O_JOY O_LADD O_GROUND_ATACK O_DIE2 O_THROW_ROCK O_PUSH)) ;STAY))
        (price1         250)
        (price2         100)
        (price3         10)
	(min_range	3)
	(max_range	9)
        (view           9)
	(radius		12)
        (build_time     2000)
        (speed          40)
        (armor          50)
	(damage		5)
        (grp            ".\\data\\graphics\\dac\\units\\sabier.spr")
        (palette        ".\\data\\graphics\\dac\\units\\sabier.p24")
        (sounds         SOUNDS_SABIER)
        (menu           MENU_SABIER)
        (size           1)
        (directions     5)                     ; asta trebuie scrisa inaintea...
;                         +------------------------- tipul animatiei: mers,lupta,..
;                         |       +----------------- directia de miscare
;                         |       |              +-- cadru de stationare
;                         |       |              | + animatia pentru miscare
;                         |       |              | |
;                         v       v              v v
        (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 326 337) 337 337 337 337)
        (animation ANIMATION_STAY up-left   (seq 326 337) 337 337 337 337)
        (animation ANIMATION_STAY left      (seq 326 337) 337 337 337 337)
        (animation ANIMATION_STAY down-left (seq 326 337) 337 337 337 337)
        (animation ANIMATION_STAY down      (seq 326 337) 337 337 337 337)

        (animation ANIMATION_DIE up        (seq 187 194))
        (animation ANIMATION_DIE up-left   (seq 187 194))
        (animation ANIMATION_DIE left      (seq 187 194))
        (animation ANIMATION_DIE down-left (seq 179 184))
        (animation ANIMATION_DIE down      (seq 179 184))

        (animation ANIMATION_DIE2 up        (seq 169 178))
        (animation ANIMATION_DIE2 up-left   (seq 169 178))
        (animation ANIMATION_DIE2 left      (seq 169 178))
        (animation ANIMATION_DIE2 down-left (seq 159 168))
        (animation ANIMATION_DIE2 down      (seq 159 168))

        (animation ANIMATION_LADD up        (seq 223 229))
        (animation ANIMATION_LADD up-left   (seq 216 222))
        (animation ANIMATION_LADD left      (seq 209 215))
        (animation ANIMATION_LADD down-left (seq 202 208))
        (animation ANIMATION_LADD down      (seq 195 201))

        (animation ANIMATION_HIGH_FIGHT up        233 234 235)
        (animation ANIMATION_HIGH_FIGHT up-left   233 234 235)
;       pe mijloc nu exista animatie ...        
        (animation ANIMATION_HIGH_FIGHT down-left 230 231 232)
        (animation ANIMATION_HIGH_FIGHT down      230 231 232)

        (animation ANIMATION_RIGHT_HIT  up              (seq 133 142) )
        (animation ANIMATION_RIGHT_HIT  up-left         (seq 111 120) )
        (animation ANIMATION_RIGHT_HIT  left            (seq 89 98) )
        (animation ANIMATION_RIGHT_HIT  down-left       (seq 67 76) )
        (animation ANIMATION_RIGHT_HIT  down            (seq 45 54) )

        (animation ANIMATION_TOP_HIT    up              (seq 127 132) )
        (animation ANIMATION_TOP_HIT    up-left         (seq 105 110) )
        (animation ANIMATION_TOP_HIT    left            (seq 83 88) )
        (animation ANIMATION_TOP_HIT    down-left       (seq 61 66) )
        (animation ANIMATION_TOP_HIT    down            (seq 39 44) )

        (animation ANIMATION_FRONT_HIT  up              (seq 143 145) )
        (animation ANIMATION_FRONT_HIT  up-left         (seq 121 123) )
        (animation ANIMATION_FRONT_HIT  left            (seq 99 101) )
        (animation ANIMATION_FRONT_HIT  down-left       (seq 77 79) )
        (animation ANIMATION_FRONT_HIT  down            (seq 55 57) )

        (animation ANIMATION_DEFENSE    up              (seq 124 126) )
        (animation ANIMATION_DEFENSE    up-left         (seq 102 104) )
        (animation ANIMATION_DEFENSE    left            (seq 80 82) )
        (animation ANIMATION_DEFENSE    down-left       (seq 58 60) )
        (animation ANIMATION_DEFENSE    down            (seq 36 38) )

        (animation ANIMATION_THROW_ROCK up        (seq 318 325))
        (animation ANIMATION_THROW_ROCK up-left   (seq 318 325))
        (animation ANIMATION_THROW_ROCK down-left (seq 310 317))
        (animation ANIMATION_THROW_ROCK down      (seq 310 317))

        (animation ANIMATION_PUSH    up              (seq 268 274) )
        (animation ANIMATION_PUSH    up-left         (seq 261 267) )
        (animation ANIMATION_PUSH    left            (seq 254 260) )
        (animation ANIMATION_PUSH    down-left       (seq 247 253) )
        (animation ANIMATION_PUSH    down            (seq 240 246) )

        (animation ANIMATION_PULL    up              (seq 303 309) )
        (animation ANIMATION_PULL    up-left         (seq 296 302) )
        (animation ANIMATION_PULL    left            (seq 289 295) )
        (animation ANIMATION_PULL    down-left       (seq 282 288) )
        (animation ANIMATION_PULL    down            (seq 275 281) )
)
