pub fn flags(&self) -> u8 {
        let mut r = 0;

        r |= (self.background as u8) << 7;
        r |= (self.y_flip     as u8) << 6;
        r |= (self.x_flip     as u8) << 5;

        r |= match self.palette {
            Palette::Obp0 => 0,
            Palette::Obp1 => 1,
        } << 4;

        r
    }
/// Reconstruct flags register value from Sprite state
Reconstruct flags register value from Sprite state
Reconstruct flags register value from Sprite state
pub fn flags(&self) -> u8 {
        let mut r = 0;
        r |= (self.background as u8) << 7;
        r |= (self.y_flip     as u8) << 6;
        r |= (self.x_flip     as u8) << 5;
        r |= match self.palette {
            Palette::Obp0 => 0,
            Palette::Obp1 => 1,
        } << 4;
        r
    }
pub fn flags ( & self ) -> u8 { let mut r = 0 ; r |= ( self . background as u8 ) << 7 ; r |= ( self . y_flip as u8 ) << 6 ; r |= ( self . x_flip as u8 ) << 5 ; r |= match self . palette { Palette :: Obp0 => 0 , Palette :: Obp1 => 1 , } << 4 ; r }
Reconstruct flags register value from Sprite state
Reconstruct flags register value from Sprite state
&self
&self