Class: Quake::Bsp::Level

Inherits:
Data
  • Object
show all
Defined in:
lib/quake/bsp/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clipnodesObject (readonly)

Returns the value of attribute clipnodes

Returns:

  • (Object)

    the current value of clipnodes



49
50
51
# File 'lib/quake/bsp/types.rb', line 49

def clipnodes
  @clipnodes
end

#edgesObject (readonly)

Returns the value of attribute edges

Returns:

  • (Object)

    the current value of edges



49
50
51
# File 'lib/quake/bsp/types.rb', line 49

def edges
  @edges
end

#entitiesObject (readonly)

Returns the value of attribute entities

Returns:

  • (Object)

    the current value of entities



49
50
51
# File 'lib/quake/bsp/types.rb', line 49

def entities
  @entities
end

#facesObject (readonly)

Returns the value of attribute faces

Returns:

  • (Object)

    the current value of faces



49
50
51
# File 'lib/quake/bsp/types.rb', line 49

def faces
  @faces
end

#leafsObject (readonly)

Returns the value of attribute leafs

Returns:

  • (Object)

    the current value of leafs



49
50
51
# File 'lib/quake/bsp/types.rb', line 49

def leafs
  @leafs
end

#lightingObject (readonly)

Returns the value of attribute lighting

Returns:

  • (Object)

    the current value of lighting



49
50
51
# File 'lib/quake/bsp/types.rb', line 49

def lighting
  @lighting
end

#marksurfacesObject (readonly)

Returns the value of attribute marksurfaces

Returns:

  • (Object)

    the current value of marksurfaces



49
50
51
# File 'lib/quake/bsp/types.rb', line 49

def marksurfaces
  @marksurfaces
end

#modelsObject (readonly)

Returns the value of attribute models

Returns:

  • (Object)

    the current value of models



49
50
51
# File 'lib/quake/bsp/types.rb', line 49

def models
  @models
end

#nodesObject (readonly)

Returns the value of attribute nodes

Returns:

  • (Object)

    the current value of nodes



49
50
51
# File 'lib/quake/bsp/types.rb', line 49

def nodes
  @nodes
end

#planesObject (readonly)

Returns the value of attribute planes

Returns:

  • (Object)

    the current value of planes



49
50
51
# File 'lib/quake/bsp/types.rb', line 49

def planes
  @planes
end

#surfedgesObject (readonly)

Returns the value of attribute surfedges

Returns:

  • (Object)

    the current value of surfedges



49
50
51
# File 'lib/quake/bsp/types.rb', line 49

def surfedges
  @surfedges
end

#texinfoObject (readonly)

Returns the value of attribute texinfo

Returns:

  • (Object)

    the current value of texinfo



49
50
51
# File 'lib/quake/bsp/types.rb', line 49

def texinfo
  @texinfo
end

#texturesObject (readonly)

Returns the value of attribute textures

Returns:

  • (Object)

    the current value of textures



49
50
51
# File 'lib/quake/bsp/types.rb', line 49

def textures
  @textures
end

#verticesObject (readonly)

Returns the value of attribute vertices

Returns:

  • (Object)

    the current value of vertices



49
50
51
# File 'lib/quake/bsp/types.rb', line 49

def vertices
  @vertices
end

#visibilityObject (readonly)

Returns the value of attribute visibility

Returns:

  • (Object)

    the current value of visibility



49
50
51
# File 'lib/quake/bsp/types.rb', line 49

def visibility
  @visibility
end

Instance Method Details

#hullsObject



55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/quake/bsp/types.rb', line 55

def hulls
  [
    nil,
    Hull.new(
      first_clipnode: 0,
      last_clipnode: clipnodes.size - 1,
      clip_mins: Math::Vec3.new(-16.0, -16.0, -24.0),
      clip_maxs: Math::Vec3.new(16.0, 16.0, 32.0)
    ),
    Hull.new(
      first_clipnode: 0,
      last_clipnode: clipnodes.size - 1,
      clip_mins: Math::Vec3.new(-32.0, -32.0, -24.0),
      clip_maxs: Math::Vec3.new(32.0, 32.0, 64.0)
    )
  ]
end