예제 #1
0
Creature::Creature()
{
    moves = 0;
    pain = 0;
    killer = NULL;
    speed_base = 100;
    underwater = false;

    reset_bonuses();

    fake = false;
}
예제 #2
0
void Creature::process_turn()
{
    if(is_dead_state()) {
        return;
    }
    reset_bonuses();

    process_effects();

    // Call this in case any effects have changed our stats
    reset_stats();

    // add an appropriate number of moves
    moves += get_speed();
}
예제 #3
0
Creature::Creature()
{
    str_max = 0;
    dex_max = 0;
    per_max = 0;
    int_max = 0;
    str_cur = 0;
    dex_cur = 0;
    per_cur = 0;
    int_cur = 0;
    moves = 0;
    pain = 0;
    killer = NULL;
    speed_base = 100;

    reset_bonuses();

    fake = false;
}
예제 #4
0
void Creature::reset()
{
    reset_bonuses();
    reset_stats();
}