(define UNIT_ROMAN      2)

(define_menu	MENU_ROMAN_BUILD
        (button
                (icon           SCLAVB-ROMAN-11)
                (state          NORMAL)
                (type           BUTTON)
                (command        PLACE-BUILD)
                (object         SENAT)
        )
        (button 
                (icon           SCLAVB-ROMAN-12)
                (state          NORMAL)
                (type           BUTTON)
                (command        PLACE-BUILD)
                (object         CASA_ROMANA)
        )
        (button 
                (icon           SCLAVB-ROMAN-13)
                (state          NORMAL)
                (type           BUTTON)
                (command        PLACE-BUILD)
                (object         CAZARMA_ROMANA)
        )
        (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_ROMAN)
        )
)

(define_menu    MENU_ROMAN
        (button
                (icon           ICON_MOVE)
                (state          NORMAL)
                (type           BUTTON)
                (command        MOVE)
        )
        (button 
                (icon           ICON_ATACK)
                (state          DISABLED)
                (type           BUTTON)
                (command        NONE)
        )
        (button 
                (icon           ICON_RETREAT)
                (state          DISABLED)
                (type           BUTTON)
                (command        NONE)
        )
        (button
                (icon           ICON_BUILD)
                (state          NORMAL)
                (type           BUTTON)
                (command        CHANGE-MENU)
                (object         MENU_ROMAN_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_ROMAN)
        (ai_type        AI_SLAVE)
        (name           "Sclav roman")
	(portrait	".\\data\\graphics\\roman\\portrait\\sclav_roman.bmp")
	(icon		ROMAN-MIC)
        (options        (+ O_STAY O_JOY O_CHOP O_LADD))
        (price1         250)
        (price2         100)
        (price3         10)
        (view           9)
	(min_range	3)
	(max_range	9)
	(radius		12)
        (build_time     2000)
        (speed          40)
        (armor          50)
	(damage		7)
        (grp            ".\\data\\graphics\\roman\\units\\sclav.spr")
        (palette        ".\\data\\graphics\\roman\\units\\sclav.p24")
        (sounds         SOUNDS_ROMAN)
        (menu           MENU_ROMAN)
        (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        277 278    280 280 280  280 280 279 279 278 278 277 277 276)
        (animation ANIMATION_WORK up-left   277 278    280 280 280  280 280 279 279 278 278 277 277 276)
;       nu exista animatie la stanga 
        (animation ANIMATION_WORK down-left 272 273    275 275 275  275 275 274 274 273 273 272 272 271)
        (animation ANIMATION_WORK down      272 273    275 275 275  275 275 274 274 273 273 272 272 271)

        (animation ANIMATION_JOY up        317 318 319 320 319 320 319 320)
        (animation ANIMATION_JOY up-left   317 318 319 320 319 320 319 320)
        (animation ANIMATION_JOY left      317 318 319 320 319 320 319 320)
        (animation ANIMATION_JOY down-left 317 318 319 320 319 320 319 320)
        (animation ANIMATION_JOY down      317 318 319 320 319 320 319 320)

        (animation ANIMATION_STAY up        (seq 313 316) 316 316 316 316 316 316 316 (seq 316 313) )
        (animation ANIMATION_STAY up-left   (seq 309 312) 312 312 312 312 312 312 312 (seq 312 309) )
        (animation ANIMATION_STAY left      (seq 305 308) 308 308 308 308 308 308 308 (seq 308 305) )
        (animation ANIMATION_STAY down-left (seq 301 304) 304 304 304 304 304 304 304 (seq 304 301) )
        (animation ANIMATION_STAY down      (seq 297 300) 300 300 300 300 300 300 300 (seq 300 297) )

        (animation ANIMATION_DIE up        (seq 289 296))
        (animation ANIMATION_DIE up-left   (seq 289 296))
        (animation ANIMATION_DIE left      (seq 289 296))
        (animation ANIMATION_DIE down-left (seq 281 288))
        (animation ANIMATION_DIE down      (seq 281 288))

        (animation ANIMATION_CHOP up            (seq 265 267) 267 267 267 266 )
        (animation ANIMATION_CHOP up-left       (seq 258 260) 260 260 260 259 )
        (animation ANIMATION_CHOP left          (seq 251 253) 253 253 253 252 )
        (animation ANIMATION_CHOP down-left     (seq 244 246) 246 246 246 245 )
        (animation ANIMATION_CHOP down          (seq 237 239) 239 239 239 238 )

        (animation ANIMATION_LADD up        (seq 328 334))
        (animation ANIMATION_LADD up-left   (seq 328 334))
        (animation ANIMATION_LADD down-left (seq 321 327))
        (animation ANIMATION_LADD down      (seq 321 327))
)
