1 / 13

Map Tables

Map Tables. By David Isenberg. Tables involving the Map. Map_Table The map of the “world” User_Location_Table A user’s location at a particular instant in time Building_Table A table with building names and descriptions . Building Table.

xanto
Download Presentation

Map Tables

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Map Tables By David Isenberg

  2. Tables involving the Map • Map_Table The map of the “world” • User_Location_Table A user’s location at a particular instant in time • Building_Table A table with building names and descriptions

  3. Building Table This table is a list of all the buildings in the world Fields • Building_id – integer given to building (primary key) • BuildingName – string “Engineering Building” • Building description – string describing each building

  4. The primary key is composed of these four fields: X - an integer representing the x coordinate Y - an integer representing the y coordinate Floor - an integer representing the floor BuildingID – an integer; the ID of the building Room - string e.g “Classroom” Description – a string a description of the room Map Table - Fields

  5. Map Table – Fields Cont… • East • West • North • South Values 0 – no door 1 – closed door 2 – open door 3 - corridor • Up • Down 0 – cannot go 1 – can go

  6. More Map Fields • TA_ID - ID of the TA in room • Teacher_ID - ID of the Teacher in room • NPC_ID - ID of NPC in room • Item1_ID - ID of items in room… • Item2_ID • Item3_ID Note: Given value of 0 if not in the room

  7. Location Table This table matches a player with a particular location Fields • Userid - player number (primary key) • buildingID - location of that user… • Floor • X • Y

  8. Decisions • Normalization of Buildings into a building table • Map_Table does not include filename of picture – algorithm done by client. • Location_Table is separate from player table. This is because it will be queried very often and only relevant information needs to be returned.

  9. ITEM & CLASS TABLES • By Bryan Chasanoff

  10. The Item Table • REQUIRED • ID :The Item ID is a label imposed on the item to link it to other tables (such as the map) • Name: The Name of item to diaply to the player

  11. The Item Table (Cont’d) • OPTIONAL • WEIGHT: Weight of the object • SIZE: Size of the Object • HITPOINTS: damage item does • 0 for a non-weapons • X for a weapon

  12. Item Bag Table • Will be created during character creation

  13. Class Table • ID: Course number ie. Level: 210 = Level 2 • Class Name: Relay back to user • TeacherID: Who teaches the class, different teachers have different attributes • Prereqs: Which class does a student have to fulfill before passing this class

More Related