1
This commit is contained in:
parent
76c04da51b
commit
f0c63489fd
@ -81,4 +81,10 @@ namespace mt
|
|||||||
return _can_revive;
|
return _can_revive;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool SafeArea::IsLastGas() const
|
||||||
|
{
|
||||||
|
const mt::SafeArea* next_meta = mt::SafeArea::GetById(id() + 1);
|
||||||
|
return !next_meta || next_meta->type() != type();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,7 @@ namespace mt
|
|||||||
int GetSmallRingCount() const { return small_ring_count_; }
|
int GetSmallRingCount() const { return small_ring_count_; }
|
||||||
const mt::SafeArea* GetLastArea() const { return last_area_; }
|
const mt::SafeArea* GetLastArea() const { return last_area_; }
|
||||||
bool CanRevive() const;
|
bool CanRevive() const;
|
||||||
|
bool IsLastGas() const;
|
||||||
|
|
||||||
static const SafeArea* GetByType(int type);
|
static const SafeArea* GetByType(int type);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user