(define UNIT_SCLAV      1)

(define_menu	MENU_SCLAV_BUILD
        (button
                (icon           SCLAV-DAC-11)
                (state          NORMAL)
                (type           BUTTON)
                (command        PLACE-BUILD)
                (object         PRIMARIE)
        )
        (button 
                (icon           SCLAV-DAC-12)
                (state          NORMAL)
                (type           BUTTON)
                (command        PLACE-BUILD)
                (object         COLIBA)
        )
        (button 
                (icon           SCLAV-DAC-13)
                (state          NORMAL)
                (type           BUTTON)
                (command        PLACE-BUILD)
                (object         SCOALA)
        )
        (button 
                (icon           PLACUTA_2_1)
                (state          DISABLED)
                (type           BUTTON)
                (command        NONE)
        )
        (button 
                (icon           PLACUTA_2_2)
                (state          DISABLED)
                (type           BUTTON)
                (command        NONE)
        )
        (button 
                (icon           PLACUTA_2_3)
                (state          DISABLED)
                (type           BUTTON)
                (command        NONE)
        )

        (button 
                (icon           PLACUTA_3_1)
                (state          DISABLED)
                (type           BUTTON)
                (command        NONE)
        )
        (button 
                (icon           PLACUTA_3_2)
                (state          DISABLED)
                (type           BUTTON)
                (command        NONE)
        )
        (button 
                (icon           CANCEL)
                (state          NORMAL)
                (type           BUTTON)
                (command        CHANGE-MENU)
	        (object         MENU_SCLAV)
        )
)

(define_menu    MENU_SCLAV
        (button
                (icon           ICON_MOVE)
                (state          NORMAL)
                (type           BUTTON)
                (command        MOVE)
        )
        (button 
                (icon           ICON_ATACK)
                (state          DISABLED)
                (type           BUTTON)
                (command        NONE)
;                (state          NORMAL)
;                (type           BUTTON)
;                (command        THROW_ROCK)
;                (object         BULLET-1)
        )
        (button 
                (icon           ICON_RETREAT)
                (state          DISABLED)
                (type           BUTTON)
                (command        NONE)
        )
        (button
                (icon           ICON_BUILD)
                (state          NORMAL)
                (type           BUTTON)
                (command        CHANGE-MENU)
                (object         MENU_SCLAV_BUILD)
        )
        (button 
                (icon           ICON_BUILD2)
                (state          DISABLED)
                (type           BUTTON)
                (command        NONE)
        )
        (button
                (icon           ICON_REPAIR)
                (state          NORMAL)
                (type           BUTTON)
                (command        REPAIR)
        )
        (button 
                (icon           ICON_ACTION)
                (state          DISABLED)
                (type           BUTTON)
                (command        NONE)
        )
        (button
                (icon           ICON_LADDER)
                (state          NORMAL)
                (type           BUTTON)
                (command        PLACE-BUILD)
                (object         SCARA1)
        )
        (button 
                (icon           CANCEL)
                (state          NORMAL)
                (type           BUTTON)
                (command        STOP)
        )
)

(define_unit 
        (id             UNIT_SCLAV)
        (ai_type        AI_SLAVE)
        (name           "Taran(oi) dac")
	(portrait	".\\data\\graphics\\dac\\portrait\\taran_dac.bmp")
	(icon		TARAN-MIC)
        (options        (+ O_STAY O_JOY O_LADD O_THROW_ROCK O_CHOP))
        (price1         250)
        (price2         100)
        (price3         10)
        (view           5)
	(radius		12)
	(min_range	3)
	(max_range	9)
        (build_time     2000)
        (speed          40)
        (armor          50)
	(damage		3)
        (grp            ".\\data\\graphics\\dac\\units\\sclav.spr")
        (palette        ".\\data\\graphics\\dac\\units\\sclav.p24")
        (sounds         SOUNDS_SCLAV)
        (menu           MENU_SCLAV)
        (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 33 40) )
        (animation ANIMATION_MOVE up-left   (seq 25 32) )
        (animation ANIMATION_MOVE left      (seq 17 24) )
        (animation ANIMATION_MOVE down-left (seq 9  16) )
        (animation ANIMATION_MOVE down      (seq 1  8 ) )

        (animation ANIMATION_MOVE_GOLD up        (seq 73 80) )
        (animation ANIMATION_MOVE_GOLD up-left   (seq 65 72) )
        (animation ANIMATION_MOVE_GOLD left      (seq 57 64) )
        (animation ANIMATION_MOVE_GOLD down-left (seq 49 56) )
        (animation ANIMATION_MOVE_GOLD down      (seq 41 48) )

        (animation ANIMATION_MOVE_ION up        (seq 113 120) )
        (animation ANIMATION_MOVE_ION up-left   (seq 105 112) )
        (animation ANIMATION_MOVE_ION left      (seq 97 104) )
        (animation ANIMATION_MOVE_ION down-left (seq 89 96) )
        (animation ANIMATION_MOVE_ION down      (seq 81 88) )

        (animation ANIMATION_MOVE_WOOD up        (seq 153 160) )
        (animation ANIMATION_MOVE_WOOD up-left   (seq 145 152) )
        (animation ANIMATION_MOVE_WOOD left      (seq 137 144) )
        (animation ANIMATION_MOVE_WOOD down-left (seq 129 136) )
        (animation ANIMATION_MOVE_WOOD down      (seq 121 128) )

        (animation ANIMATION_MOVE_ROCK up        (seq 193 200) )
        (animation ANIMATION_MOVE_ROCK up-left   (seq 185 192) )
        (animation ANIMATION_MOVE_ROCK left      (seq 177 184) )
        (animation ANIMATION_MOVE_ROCK down-left (seq 169 176) )
        (animation ANIMATION_MOVE_ROCK down      (seq 161 168) )

        (animation ANIMATION_WORK up        (seq 340 344) 343 (seq 344 340) 340 340)
        (animation ANIMATION_WORK up-left   (seq 340 344) 343 (seq 344 340) 340 340)
;       nu exista animatie la stanga 
        (animation ANIMATION_WORK down-left (seq 335 339) 338 (seq 339 335) 335 335)
        (animation ANIMATION_WORK down      (seq 335 339) 338 (seq 339 335) 335 335)

        (animation ANIMATION_JOY up        365 366 367 368 367 368 367 368)
        (animation ANIMATION_JOY up-left   365 366 367 368 367 368 367 368)
        (animation ANIMATION_JOY left      365 366 367 368 367 368 367 368)
        (animation ANIMATION_JOY down-left 365 366 367 368 367 368 367 368)
        (animation ANIMATION_JOY down      365 366 367 368 367 368 367 368)

        (animation ANIMATION_STAY up        (seq 361 364) 362 361)
        (animation ANIMATION_STAY up-left   (seq 357 360) 358 357)
        (animation ANIMATION_STAY left      (seq 353 356) 354 353)
        (animation ANIMATION_STAY down-left (seq 349 352) 350 349)
        (animation ANIMATION_STAY down      (seq 345 348) 346 345)

        (animation ANIMATION_DIE up        (seq 377 384))
        (animation ANIMATION_DIE up-left   (seq 377 384))
        (animation ANIMATION_DIE left      (seq 377 384))
        (animation ANIMATION_DIE down-left (seq 369 376))
        (animation ANIMATION_DIE down      (seq 369 376))

        (animation ANIMATION_CHOP up        327 328 329 330 330 330 330 329 328)
        (animation ANIMATION_CHOP up-left   318 319 320 321 321 321 321 320 319)
        (animation ANIMATION_CHOP left      309 310 311 312 312 312 312 311 310)
        (animation ANIMATION_CHOP down-left 300 301 302 303 303 303 303 302 301)
        (animation ANIMATION_CHOP down      291 292 293 294 294 294 294 293 292)

        (animation ANIMATION_LADD up        (seq 392 398))
        (animation ANIMATION_LADD up-left   (seq 392 398))
        (animation ANIMATION_LADD down-left (seq 385 391))
        (animation ANIMATION_LADD down      (seq 385 391))

        (animation ANIMATION_THROW_ROCK up        (seq 248 254))
        (animation ANIMATION_THROW_ROCK up-left   (seq 248 254))
        (animation ANIMATION_THROW_ROCK down-left (seq 241 247))
        (animation ANIMATION_THROW_ROCK down      (seq 241 247))

        (animation ANIMATION_PUSH    up              (seq 233 240) )
        (animation ANIMATION_PUSH    up-left         (seq 225 232) )
        (animation ANIMATION_PUSH    left            (seq 217 224) )
        (animation ANIMATION_PUSH    down-left       (seq 209 216) )
        (animation ANIMATION_PUSH    down            (seq 201 208) )
)
