home *** CD-ROM | disk | FTP | other *** search
/ Crazy Collection 12 / CC-12_1.iso / update / doompack / data.a00 / ADE2.ZIP / SOURCE / SOURCE2.ZIP / NAMES.C < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-08  |  21.2 KB  |  845 lines

  1. /*
  2.    Amazing Doom Editor, by Brendon Wyber and RaphaĆ«l Quinet.
  3.  
  4.    Doom II code by Adrian Cable.
  5.  
  6.    If you use any part of this code in one of your programs,
  7.    please make it clear that you borrowed it from here...
  8.  
  9.    NAMES.C - Object name and type routines.
  10. */
  11.  
  12. /* the includes */
  13. #include "deu.h"
  14.  
  15.  
  16. /*
  17.    get the name of an object type
  18. */
  19. char *GetObjectTypeName( int objtype)
  20. {
  21.    switch (objtype)
  22.    {
  23.    case OBJ_THINGS:
  24.       return "Thing";
  25.    case OBJ_LINEDEFS:
  26.       return "LineDef";
  27.    case OBJ_SIDEDEFS:
  28.       return "SideDef";
  29.    case OBJ_VERTEXES:
  30.       return "Vertex";
  31.    case OBJ_SEGS:
  32.       return "Segment";
  33.    case OBJ_SSECTORS:
  34.       return "SSector";
  35.    case OBJ_NODES:
  36.       return "Node";
  37.    case OBJ_SECTORS:
  38.       return "Sector";
  39.    case OBJ_REJECT:
  40.       return "Reject";
  41.    case OBJ_BLOCKMAP:
  42.       return "Blockmap";
  43.    }
  44.    return "< Bug! >";
  45. }
  46.  
  47.  
  48.  
  49. /*
  50.    what are we editing?
  51. */
  52. char *GetEditModeName( int objtype)
  53. {
  54.    switch (objtype)
  55.    {
  56.    case OBJ_THINGS:
  57.       return "Things";
  58.    case OBJ_LINEDEFS:
  59.    case OBJ_SIDEDEFS:
  60.       return "LineDefs & SideDefs";
  61.    case OBJ_VERTEXES:
  62.       return "Vertices";
  63.    case OBJ_SEGS:
  64.       return "Segments";
  65.    case OBJ_SSECTORS:
  66.       return "Seg-Sectors";
  67.    case OBJ_NODES:
  68.       return "Nodes";
  69.    case OBJ_SECTORS:
  70.       return "Sectors";
  71.    }
  72.    return "< Bug! >";
  73. }
  74.  
  75.  
  76.  
  77. /*
  78.    get a short (2 + 13 char.) description of the type of a linedef
  79. */
  80.  
  81. char *GetLineDefTypeName( int type)
  82. {
  83.    switch (type)
  84.    {
  85.    case 0:
  86.       return "-- Normal";
  87.    case 1:
  88.       return "DR Door";
  89.    case 2:
  90.       return "W1 Open door (O)";
  91.    case 3:
  92.       return "W1 Close door";
  93.    case 4:
  94.       return "W1 Open door";
  95.    case 5:
  96.       return "W1 Raise floor?C"; /* highest floor ? */
  97.    case 6:
  98.       return "W1 Fast crushing";
  99.    case 7:
  100.       return "S1 Raise stairs";
  101.    case 8:
  102.       return "W1 Raise stairs";
  103.    case 9:
  104.       return "S1 Lower+neigh.T";
  105.    case 10:
  106.       return "W1 Lower lift";
  107.    case 11:
  108.       return "S- End level";
  109.    case 12:
  110.       return "W1 Lights max. N";
  111.    case 13:
  112.       return "W1 Lights on!";
  113.    case 14:
  114.       return "S1 Raise floor>N";
  115.    case 15:
  116.       return "S1 Raise flr32 T";
  117.    case 16:
  118.       return "W1 Close door 30";
  119.    case 17:
  120.       return "W? Blink light";
  121.    case 18:
  122.       return "S1 Raise floor N";
  123.    case 19:
  124.       return "W1 Lower floor N";
  125.    case 20:
  126.       return "S1 Raise floor T";
  127.    case 21:
  128.       return "S1 Lower floor<C";
  129.    case 22:
  130.       return "W1 Raise floor T";
  131.    case 23:
  132.       return "S1 Lower floor<?";
  133.    case 24:
  134.       return "G1 Raise floor C";
  135.    case 25:
  136.       return "W1 Crushing ceil";
  137.    case 26:
  138.       return "DR Blue door";
  139.    case 27:
  140.       return "DR Yellow door";
  141.    case 28:
  142.       return "DR Red door";
  143.    case 29:
  144.       return "S1 Open door";
  145.    case 30:
  146.       return "W1 Raise floor>?";
  147.    case 31:
  148.       return "D1 Door (stay O)";
  149.    case 32:
  150.       return "D1 Blue door O";
  151.    case 33:
  152.       return "D1 Red door O";
  153.    case 34:
  154.       return "D1 Yellow door O";
  155.    case 35:
  156.       return "W1 Lights out!";
  157.    case 36:
  158.       return "W1 Lower floor>N";
  159.    case 37:
  160.       return "W1 Lower floor T";
  161.    case 38:
  162.       return "W1 Lower floor";
  163.    case 39:
  164.       return "W1 Teleport";
  165.    case 40:
  166.       return "W1 Raise ceiling";
  167.    case 41:
  168.       return "S1 Lower ceiling";
  169.    case 42:
  170.       return "SR Close door";
  171.    case 43:
  172.       return "SR Lower ceiling";
  173.    case 44:
  174.       return "W1 Lower ceil. >";
  175.    case 45:
  176.       return "SR Raise floor N";
  177.    case 46:
  178.       return "G1 Shoot to open";
  179.    case 47:
  180.       return "G1 Raise floor T";
  181.    case 48:
  182.       return "-- Animated wall";
  183.    case 49:
  184.       return "S1 Lower ceil. >";
  185.    case 50:
  186.       return "S1 Close door";
  187.    case 51:
  188.       return "S- Secret level";
  189.    case 52:
  190.       return "W- End level";
  191.    case 53:
  192.       return "W1 Moving floor";
  193.    case 54:
  194.       return "W1 Stop Moving f";
  195.    case 55:
  196.       return "S1 Raise floor<C";
  197.    case 56:
  198.       return "W1 Raise floor<C";
  199.    case 57:
  200.       return "W1 Stop crushing";
  201.    case 58:
  202.       return "W1 Raise floor32";
  203.    case 59:
  204.       return "W1 Raise floor>T";
  205.    case 60:
  206.       return "SR Lower floor N";
  207.    case 61:
  208.       return "SR Open door (O)";
  209.    case 62:
  210.       return "SR Lower lift";
  211.    case 63:
  212.       return "SR Open door";
  213.    case 64:
  214.       return "SR Raise floor C";
  215.    case 65:
  216.       return "SR Raise floor<C";
  217.    case 66:
  218.       return "SR Raise flr16 T";
  219.    case 67:
  220.       return "SR Raise flr32 T";
  221.    case 68:
  222.       return "S? Lower floor T";
  223.    case 69:
  224.       return "SR Raise floor N";
  225.    case 70:
  226.       return "SR Lower floor>N";
  227.    case 71:
  228.       return "S1 Lower floor>N";
  229.    case 73:
  230.       return "WR Crushing ceil";
  231.    case 74:
  232.       return "WR Stop crushing";
  233.    case 75:
  234.       return "WR Close door";
  235.    case 76:
  236.       return "WR Close door 30";
  237.    case 77:
  238.       return "WR Fast crushing";
  239.    case 78:
  240.       return "WR Lights min. N";
  241.    case 79:
  242.       return "WR Lights off!";
  243.    case 80:
  244.       return "WR Lights max. N";
  245.    case 81:
  246.       return "WR Lights on!";
  247.    case 82:
  248.       return "WR Lower floor N";
  249.    case 83:
  250.       return "WR Lower fl.maxN";
  251.    case 84:
  252.       return "WR Lower fl.minN";
  253.    case 85:
  254.       return "WR Lwr fl & R. cl";
  255.    case 86:
  256.       return "WR Open door (O)";
  257.    case 87:
  258.       return "WR Moving floor";
  259.    case 88:
  260.       return "WR Lower lift";
  261.    case 89:
  262.       return "WR Stop moving f";
  263.    case 90:
  264.       return "WR Open door";
  265.    case 91:
  266.       return "WR Raise floor C";
  267.    case 92:
  268.       return "WR Raise floor24";
  269.    case 93:
  270.       return "WR Raise flr.24T";
  271.    case 94:
  272.       return "WR Raise floor<C";
  273.    case 95:
  274.       return "W1 Raise floor T";
  275.    case 96:
  276.       return "WR Raise floor72";
  277.    case 97:
  278.       return "WR Teleport";
  279.    case 98:
  280.       return "WR Lower floor >";
  281.    case 99:
  282.       return "SR Turbo Blue obj";
  283.    case 100:
  284.       return "W1 Turbo stairs16";
  285.    case 101:
  286.       return "S1 Raise floor C";
  287.    case 102:
  288.       return "S? Lower floor";
  289.    case 103:
  290.       return "S1 Open Door (O)";
  291.    case 104:
  292.       return "W1 Lights down N";
  293.    case 105:
  294.       return "WR Turbo door";
  295.    case 106:
  296.       return "WR Turbo door (O)";
  297.    case 107:
  298.       return "WR Turbo shut dr.";
  299.    case 108:
  300.       return "W1 Turbo door";
  301.    case 109:
  302.       return "W1 Turbo door (O)";
  303.    case 110:
  304.       return "W1 Turbo shut dr.";
  305.    case 111:
  306.       return "S1 Turbo door";
  307.    case 112:
  308.       return "S1 Turbo door (O)";
  309.    case 113:
  310.       return "S1 Turbo shut dr.";
  311.    case 114:
  312.       return "SR Turbo door";
  313.    case 115:
  314.       return "SR Turbo door (O)";
  315.    case 116:
  316.       return "SR Turbo shut dr.";
  317.    case 117:
  318.       return "DR Turbo door";
  319.    case 118:
  320.       return "D1 Turbo door (O)";
  321.    case 119:
  322.       return "W1 Raise floor N";
  323.    case 120:
  324.       return "WR Turbo lwr. lft";
  325.    case 121:
  326.       return "W1 Turbo lwr. lft";
  327.    case 122:
  328.       return "S1 Turbo lwr. lft";
  329.    case 123:
  330.       return "SR Turbo lwr. lft";
  331.    case 124:
  332.       return "W- Secret";
  333.    case 125:
  334.       return "W1 T.port monster";
  335.    case 126:
  336.       return "WR T.port monster";
  337.    case 127:
  338.       return "S1 Turbo stairs16";
  339.    case 128:
  340.       return "WR Raise floor N";
  341.    case 129:
  342.       return "WR Fast R.floor C";
  343.    case 130:
  344.       return "W1 Fast R.floor C";
  345.    case 131:
  346.       return "S1 Fast R.floor C";
  347.    case 132:
  348.       return "SR Fast R.floor C";
  349.    case 133:
  350.       return "S1 Turbo Blue obj";
  351.    case 134:
  352.       return "SR Turbo Red obj.";
  353.    case 135:
  354.       return "S1 Turbo Red obj.";
  355.    case 136:
  356.       return "SR Turbo Yel. obj";
  357.    case 137:
  358.       return "S1 Turbo Yel. obj";
  359.    case 138:
  360.       return "SR Lights on!";
  361.    case 139:
  362.       return "SR Lights off!";
  363.    case 140:
  364.       return "S1 Raise floor512";
  365.    case 141:
  366.       return "W1 Start moving C";
  367.    }
  368.    return "?? UNKNOWN";
  369. }
  370.  
  371.  
  372.  
  373. /*
  374.    get a long description of the type of a linedef
  375. */
  376.  
  377. char *GetLineDefTypeLongName( int type)
  378. {
  379.    switch (type)
  380.    {
  381.    case 0:
  382.       return "-- Normal";
  383.    case 1:
  384.       return "DR Open door (closes after 6 seconds)";
  385.    case 2:
  386.       return "W1 Open door (stays open)";
  387.    case 3:
  388.       return "W1 Close door";
  389.    case 4:
  390.       return "W1 Open door (closes after 6 seconds)";
  391.    case 5:
  392.       return "W1 Raise floor to match Ne. ceiling/highest floor ?";
  393.    case 6:
  394.       return "W1 Start crushing ceiling (Fast)";
  395.    case 7:
  396.       return "S1 Raise stairs (several sectors 0/999)";
  397.    case 8:
  398.       return "W1 Raise stairs (several sectors 0/999)";
  399.    case 9:
  400.       return "S1 Lower floor, raise Ne. floor & match outer texture";
  401.    case 10:
  402.       return "W1 Lower lift (rises after 3 seconds)";
  403.    case 11:
  404.       return "S- End level, go to next level";
  405.    case 12:
  406.       return "W1 Light level goes to maximum Ne. light level";
  407.    case 13:
  408.       return "W1 Light level goes to 255";
  409.    case 14:
  410.       return "S1 Raise floor to 64 above Ne. floor";
  411.    case 15:
  412.       return "S1 Raise floor up 32 and match Ne. texture and type";
  413.    case 16:
  414.       return "W1 Close door for 30 seconds";
  415.    case 17:
  416.       return "W? Start blinking lights";
  417.    case 18:
  418.       return "S1 Raise floor to match Ne. floor";
  419.    case 19:
  420.       return "W1 Lower floor to match Ne. floor";
  421.    case 20:
  422.       return "S1 Raise floor to match Ne. floor, texture and type";
  423.    case 21:
  424.       return "S1 Lower floor for 3 seconds, then raise up to Ne. ceiling";
  425.    case 22:
  426.       return "W1 Raise floor to match Ne. floor, texture and type";
  427.    case 23:
  428.       return "S1 Lower floor to match lowest Ne. floor ?";
  429.    case 24:
  430.       return "G1 Raise floor to match Ne. ceiling";
  431.    case 25:
  432.       return "W1 Start crushing ceiling (Slow)";
  433.    case 26:
  434.       return "DR Open door (closes after 6 seconds), Blue key";
  435.    case 27:
  436.       return "DR Open door (closes after 6 seconds), Yellow key";
  437.    case 28:
  438.       return "DR Open door (closes after 6 seconds), Red key";
  439.    case 29:
  440.       return "S1 Open door (closes after 6 seconds)";
  441.    case 30:
  442.       return "W1 Raise floor to 100-128 above Ne. floor ?";
  443.    case 31:
  444.       return "D1 Open door (stays open)";
  445.    case 32:
  446.       return "D1 Open door (stays open), Blue key";
  447.    case 33:
  448.       return "D1 Open door (stays open), Red key";
  449.    case 34:
  450.       return "D1 Open door (stays open), Yellow key";
  451.    case 35:
  452.       return "W1 Light level goes to 0";
  453.    case 36:
  454.       return "W1 Lower floor to 8 above Ne. floor";
  455.    case 37:
  456.       return "W1 Lower floor to match Ne. floor, texture and type";
  457.    case 38:
  458.       return "W1 Lower floor to match Ne. floor ?";
  459.    case 39:
  460.       return "W1 Teleport to another sector";
  461.    case 40:
  462.       return "W1 Raise ceiling to match Ne. ceiling";
  463.    case 41:
  464.       return "S1 Lower ceiling to floor";
  465.    case 42:
  466.       return "SR Close door";
  467.    case 43:
  468.       return "SR Lower ceiling to floor";
  469.    case 44:
  470.       return "W1 Lower ceiling to 8 above floor";
  471.    case 45:
  472.       return "SR Lower floor to match Ne. floor";
  473.    case 46:
  474.       return "G1 Open door (stays open), when shot";
  475.    case 47:
  476.       return "G1 Raise floor to match Ne. floor, texture and type ?";
  477.    case 48:
  478.       return "-- Animated wall (scrolls horizontally)";
  479.    case 49:
  480.       return "S1 Lower ceiling to 8 above floor";
  481.    case 50:
  482.       return "S1 Close door";
  483.    case 51:
  484.       return "S- End level, go to secret level";
  485.    case 52:
  486.       return "W- End level, go to next level";
  487.    case 53:
  488.       return "W1 Start moving floor (up/down every 5 seconds)";
  489.    case 54:
  490.       return "W1 Stop moving floor";
  491.    case 55:
  492.       return "S1 Raise floor to 8 below Ne. ceiling";
  493.    case 56:
  494.       return "W1 Raise floor to 8 below Ne. ceiling";
  495.    case 57:
  496.       return "W1 Stop crushing ceiling";
  497.    case 58:
  498.       return "W1 Raise floor up 32";
  499.    case 59:
  500.       return "W1 Raise floor up 8 and match Ne. texture and type";
  501.    case 60:
  502.       return "SR Lower floor to match Ne. floor ?";
  503.    case 61:
  504.       return "SR Open door (stays open)";
  505.    case 62:
  506.       return "SR Lower lift (rises after 3 seconds)";
  507.    case 63:
  508.       return "SR Open door (closes after 6 seconds)";
  509.    case 64:
  510.       return "SR Raise floor to match Ne. ceiling";
  511.    case 65:
  512.       return "SR Raise floor to 8 below Ne. ceiling";
  513.    case 66:
  514.       return "SR Raise floor up 16 and match Ne. texture and type";
  515.    case 67:
  516.       return "SR Raise floor up 32 and match Ne. texture and type";
  517.    case 68:
  518.       return "S? Lower floor to match Ne. floor, texture and type";
  519.    case 69:
  520.       return "SR Raise floor to match Ne. floor";
  521.    case 70:
  522.       return "SR Lower floor to 8 above Ne. floor";
  523.    case 71:
  524.       return "S1 Lower floor to 8 above Ne. floor";
  525.    case 72:
  526.       return "WR Lower ceiling to 8 above floor";
  527.    case 73:
  528.       return "WR Start crushing ceiling (Slow)";
  529.    case 74:
  530.       return "WR Stop crushing ceiling";
  531.    case 75:
  532.       return "WR Close door";
  533.    case 76:
  534.       return "WR Close door for 30 seconds";
  535.    case 77:
  536.       return "WR Start crushing ceiling (Fast)";
  537.    case 78:
  538.       return "WR Light level goes to minimum Ne. light level";
  539.    case 79:
  540.       return "WR Light level goes to 0";
  541.    case 80:
  542.       return "WR Light level goes to maximum Ne. light level";
  543.    case 81:
  544.       return "WR Light level goes to 255";
  545.    case 82:
  546.       return "WR Lower floor to match Ne. floor";
  547.    case 83:
  548.       return "WR Lower floor to match Ne. floor ?";
  549.    case 84:
  550.       return "WR Lower floor to match lowest Ne. floor ?";
  551.    case 85:
  552.       return "WR Lower floor and raise ceiling";
  553.    case 86:
  554.       return "WR Open door (stays open)";
  555.    case 87:
  556.       return "WR Start moving floor (up/down every 5 seconds)";
  557.    case 88:
  558.       return "WR Lower lift (rises after 3 seconds)";
  559.    case 89:
  560.       return "WR Stop moving floor";
  561.    case 90:
  562.       return "WR Open door (closes after 6 seconds)";
  563.    case 91:
  564.       return "WR Raise floor to match Ne. ceiling";
  565.    case 92:
  566.       return "WR Raise floor up 24";
  567.    case 93:
  568.       return "WR Raise floor up 24 and match Ne. texture and type";
  569.    case 94:
  570.       return "WR Raise floor to 8 below Ne. ceiling";
  571.    case 95:
  572.       return "W1 Raise floor to match Ne. floor, texture and type ?";
  573.    case 96:
  574.       return "WR Raise floor up 72";
  575.    case 97:
  576.       return "WR Teleport to another sector";
  577.    case 98:
  578.       return "WR Lower floor to 8 above Ne. floor";
  579.    case 99:
  580.       return "SR Turbo open object (stays open), Blue key";
  581.    case 100:
  582.       return "W1 Turbo raise stairs";
  583.    case 101:
  584.       return "S1 Raise floor to match Ne. ceiling";
  585.    case 102:
  586.       return "S? Lower floor to match Ne. floor";
  587.    case 103:
  588.       return "S1 Open door (stays open)";
  589.    case 104:
  590.       return "W1 Light level goes to minimum Ne. light level";
  591.    case 105:
  592.       return "WR Turbo open door (closes after 6 seconds)";
  593.    case 106:
  594.       return "WR Turbo open door (stays open)";
  595.    case 107:
  596.       return "WR Turbo close door";
  597.    case 108:
  598.       return "W1 Turbo open door (closes after 6 seconds)";
  599.    case 109:
  600.       return "W1 Turbo open door (stays open)";
  601.    case 110:
  602.       return "W1 Turbo close door";
  603.    case 111:
  604.       return "S1 Turbo open door (closes after 6 seconds)";
  605.    case 112:
  606.       return "S1 Turbo open door (stays open)";
  607.    case 113:
  608.       return "S1 Turbo close door";
  609.    case 114:
  610.       return "SR Turbo open door (closes after 6 seconds)";
  611.    case 115:
  612.       return "SR Turbo open door (stays open)";
  613.    case 116:
  614.       return "SR Turbo close door";
  615.    case 117:
  616.       return "DR Turbo open door (closes after 6 seconds)";
  617.    case 118:
  618.       return "D1 Turbo open door (stays open)";
  619.    case 119:
  620.       return "W1 Raise floor to Ne. floor";
  621.    case 120:
  622.       return "WR Turbo lower lift (rises after 3 sec)";
  623.    case 121:
  624.       return "W1 Turbo lower lift (rises after 3 sec)";
  625.    case 122:
  626.       return "S1 Turbo lower lift (rises after 3 sec)";
  627.    case 123:
  628.       return "SR Turbo lower lift (rises after 3 sec)";
  629.    case 124:
  630.       return "W- End level, go to secret level";
  631.    case 125:
  632.       return "W1 Teleport monster only to another sector";
  633.    case 126:
  634.       return "WR Teleport monster only to another sector";
  635.    case 127:
  636.       return "S1 Turbo raise stairs, each stair 16 high";
  637.    case 128:
  638.       return "WR Raise floor to Ne. floor";
  639.    case 129:
  640.       return "WR Turbo raise floor to match Ne. ceiling";
  641.    case 130:
  642.       return "W1 Turbo raise floor to match Ne. ceiling";
  643.    case 131:
  644.       return "S1 Turbo raise floor to match Ne. ceiling";
  645.    case 132:
  646.       return "SR Turbo raise floor to match Ne. ceiling";
  647.    case 133:
  648.       return "S1 Turbo open object (stays open), Blue key";
  649.    case 134:
  650.       return "SR Turbo open object (stays open), Red key";
  651.    case 135:
  652.       return "S1 Turbo open object (stays open), Red key";
  653.    case 136:
  654.       return "SR Turbo open object (stays open), Yellow key";
  655.    case 137:
  656.       return "S1 Turbo open object (stays open), Yellow key";
  657.    case 138:
  658.       return "SR Light level goes to 255";
  659.    case 139:
  660.       return "SR Light level goes to 0";
  661.    case 140:
  662.       return "S1 Raise floor to 512";
  663.    case 141:
  664.       return "W1 Start silent moving ceiling (up/down)";
  665.    }
  666.    return "?? UNKNOWN ?";
  667. }
  668.  
  669.  
  670.  
  671. /*
  672.    get a short description of the flags of a linedef
  673. */
  674.  
  675. char *GetLineDefFlagsName( int flags)
  676. {
  677.    static char temp[ 20];
  678.  
  679.    if (flags & 0x0100)
  680.       strcpy( temp, "Ma"); /* Already on the map */
  681.    else
  682.       strcpy( temp, "-");
  683.    if (flags & 0x80)
  684.       strcat( temp, "In"); /* Invisible on the map */
  685.    else
  686.       strcat( temp, "-");
  687.    if (flags & 0x40)
  688.       strcat( temp, "So"); /* Blocks sound */
  689.    else
  690.       strcat( temp, "-");
  691.    if (flags & 0x20)
  692.       strcat( temp, "Se"); /* Secret (normal on the map) */
  693.    else
  694.       strcat( temp, "-");
  695.    if (flags & 0x10)
  696.       strcat( temp, "Lo"); /* Lower texture offset changed */
  697.    else
  698.       strcat( temp, "-");
  699.    if (flags & 0x08)
  700.       strcat( temp, "Up"); /* Upper texture offset changed */
  701.    else
  702.       strcat( temp, "-");
  703.    if (flags & 0x04)
  704.       strcat( temp, "2S"); /* Two-sided */
  705.    else
  706.       strcat( temp, "-");
  707.    if (flags & 0x02)
  708.       strcat( temp, "Mo"); /* Monsters can't cross this line */
  709.    else
  710.       strcat( temp, "-");
  711.    if (flags & 0x01)
  712.       strcat( temp, "Im"); /* Impassible */
  713.    else
  714.       strcat( temp, "-");
  715.    if (strlen( temp) > 13)
  716.    {
  717.       temp[13] = '|';
  718.       temp[14] = '\0';
  719.    }
  720.    return temp;
  721. }
  722.  
  723.  
  724.  
  725. /*
  726.    get a long description of one linedef flag
  727. */
  728.  
  729. char *GetLineDefFlagsLongName( int flags)
  730. {
  731.    if (flags & 0x0100)
  732.       return "Already on the map at startup";
  733.    if (flags & 0x80)
  734.       return "Invisible on the map";
  735.    if (flags & 0x40)
  736.       return "Blocks sound";
  737.    if (flags & 0x20)
  738.       return "Secret (shown as normal on the map)";
  739.    if (flags & 0x10)
  740.       return "Lower texture is \"unpegged\"";
  741.    if (flags & 0x08)
  742.       return "Upper texture is \"unpegged\"";
  743.    if (flags & 0x04)
  744.       return "Two-sided (may be transparent)";
  745.    if (flags & 0x02)
  746.       return "Monsters cannot cross this line";
  747.    if (flags & 0x01)
  748.       return "Impassible";
  749.    return "UNKNOWN";
  750. }
  751.  
  752.  
  753.  
  754. /*
  755.    get a short (13 char.) description of the type of a sector
  756. */
  757.  
  758. char *GetSectorTypeName( int type)
  759. {
  760.    switch (type)
  761.    {
  762.    case 0:
  763.       return "Normal";
  764.    case 1:
  765.       return "Blinks random.";
  766.    case 2:
  767.       return "Blinks 0.5 sec";
  768.    case 3:
  769.       return "Blinks 1.0 sec";
  770.    case 4:
  771.       return "-20% & blinks";
  772.    case 5:
  773.       return "-10% health";
  774.    case 7:
  775.       return "-5% health";
  776.    case 8:
  777.       return "Pulsates 2 sec";
  778.    case 9:
  779.       return "Secret";
  780.    case 10:
  781.       return "Shut door 30sc";
  782.    case 11:
  783.       return "-20% & end lev";
  784.    case 12:
  785.       return "Pulsates";
  786.    case 13:
  787.       return "Blinks .25 sec";
  788.    case 14:
  789.       return "Open door 5min";
  790.    case 16:
  791.       return "-20% health";
  792.    case 17:
  793.       return "On fire";
  794.    }
  795.    return "DO NOT USE!";
  796. }
  797.  
  798.  
  799.  
  800. /*
  801.    get a long description of the type of a sector
  802. */
  803.  
  804. char *GetSectorTypeLongName( int type)
  805. {
  806.    switch (type)
  807.    {
  808.    case 0:
  809.       return "Normal";
  810.    case 1:
  811.       return "Light blinks randomly";
  812.    case 2:
  813.       return "Light blinks every 0.5 second";
  814.    case 3:
  815.       return "Light blinks every second";
  816.    case 4:
  817.       return "-10/20% health and light blinks every 0.5 second";
  818.    case 5:
  819.       return "-5/10% health";
  820.    case 7:
  821.       return "-2/5% health (acid floor)";
  822.    case 8:
  823.       return "Light pulsates every 2 seconds";
  824.    case 9:
  825.       return "Secret (credit if discovered)";
  826.    case 10:
  827.       return "Door close after 30 seconds";
  828.    case 11:
  829.       return "-10/20% health and end level when health <= 10%";
  830.    case 12:
  831.       return "Light smoothly pulsates";
  832.    case 13:
  833.       return "Blinks every 0.25 seconds";
  834.    case 14:
  835.       return "Door raise after 5 minutes";
  836.    case 16:
  837.       return "-10/20% health";
  838.    case 17:
  839.       return "Flickering as if on fire";
  840.    }
  841.    return "DO NOT USE!";
  842. }
  843.  
  844. /* end of file */
  845.