public boolean getFlagByBit(int bitmask) {return ((flags & bitmask) != 0);}

public boolean getFlagByBit ( int bitmask ) { return ( ( flags & bitmask ) != 0 ) ; }
public bool GetFlagByBit(int bitmask){return ((flags & bitmask) != 0);}
