Class: Sc2::BlockTableEntry

Inherits:
BinData::Record
  • Object
show all
Defined in:
lib/sc2/wrappers/block_table_entry.rb

Instance Method Summary collapse

Instance Method Details

#compressed?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/sc2/wrappers/block_table_entry.rb', line 13

def compressed?
 (flags & 0x00000200) != 0
end

#encrypted?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/sc2/wrappers/block_table_entry.rb', line 17

def encrypted?
 (flags & 0x00010000) != 0
end

#file?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/sc2/wrappers/block_table_entry.rb', line 9

def file?
 (flags & 0x80000000) != 0
end

#single_unit?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/sc2/wrappers/block_table_entry.rb', line 21

def single_unit?
 (flags & 0x01000000) != 0
end