00001 00004 #if !defined(_DRAWING_H_) 00005 #define _DRAWING_H_ 00006 00007 #include <zakdef.h> 00008 00009 #if defined(__cplusplus) 00010 extern "C" { 00011 #endif 00012 00013 #include <appconfig.h> 00014 #include <sections.h> 00015 #include <compilerpragmas.h> 00016 00018 void InitGraphic(void); 00019 00025 EXPORT void RedrawAllFields(void); 00026 00031 EXPORT void ScrollDisplay(dirType direction); 00032 00037 EXPORT void MoveCursor(dirType direction); 00038 00044 EXPORT void DrawField(UInt16 xpos, UInt16 ypos); 00045 00053 EXPORT void DrawCross(UInt16 xpos, UInt16 ypos, UInt16 xsize, UInt16 ysize); 00054 00060 EXPORT welem_t GetGraphicNumber(UInt32 pos); 00061 00062 /* 00063 * \brief Deals with special graphics fields 00064 * \param pos index into map array 00065 * \param ntype the type of the node. 00066 * \return the special graphic number for this place. 00067 */ 00068 EXPORT welem_t GetSpecialGraphicNumber(UInt32 pos); 00069 00082 EXPORT void DrawFieldWithoutInit(UInt16 xpos, UInt16 ypos); 00083 00085 typedef enum { goto_plain = 0, goto_center } goto_code; 00096 EXPORT void Goto(UInt16 x, UInt16 y, goto_code center); 00097 00098 #if defined(__cplusplus) 00099 } 00100 #endif 00101 00102 #endif /* _DRAWING_H_ */