private void SetStatus(int s, bool set)
{
if (set)
{
this.Status = this.Status | s;
}
else
{
this.Status = this.Status & (~s);
}
}