Saturday, March 8, 2014

Design: Object Classes

Object Classes

Player (Global Singleton)
  • Room
  • Position
  • Orientation (e.g., 90 degrees, relative to North)
  • Preferences (height, stride length)

Room
  • Entrances/Exits (and associated “starting positions”)
  • Polygon representing room bounds
  • Walls
  • Floor (material)
  • Dimensions
  • Stray Objects (furniture, etc.)
  • Room name
  • Purpose (semantic info)
  • Parent building
→ Given collision coordinates, returns object collided w/
→ Given step/query coordinates, returns object queried

Building is a Room
  • Entrance/exits
  • Exterior walls
  • Rooms
  • Name
  • Type/purpose (semantic info)
  • Environment (exterior)
  • Lat/Long

Wall - - Mimic tree structure of gml
  • Windows
  • Doors
  • Angle (relative to North)
  • Adjacent rooms (N/S or E/W)
  • Material (wood, brick, etc.)
  • Color
→ Produce angle

Door
  • Material
  • Type (sliding door, automatic door, etc.)
  • Adjacent rooms

StrayObject (furniture, computer terminals, etc.)
  • Description
  • Position


No comments:

Post a Comment