### Persephone - a socio-economic-ecological model of European agricultural landscapes.
###
### This file holds the code for the Eurasian Skylark (Alauda arvensis).
###

##XXX At the moment, this is just a skeleton to show what I want to be able to interpret
## with the @species and @phase macros

@species Skylark begin

    lifeexpectancy = 365*5
    phase = "egg"
    
    @phase egg begin
        if !parentsalive(animal)
            killanimal(animal)
        end
        if animal.age == 14
            changephase("nestling")
        end
    end

    @phase nestling begin
        #TODO
    end

    #TODO
end