Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/CTiePlugin.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Sun Aug 15 01:53:13 2010 UTC (13 years, 9 months ago) by okadu
File MIME type: text/x-chdr
File size: 1100 byte(s)


1 #ifndef CTIEPLUGIN_H_INCLUDED
2 #define CTIEPLUGIN_H_INCLUDED
3
4 #include "CProfilePlugin.h"
5
6 /*
7 * 枕木プラグイン
8 */
9 class CTiePlugin: public CProfilePlugin{
10 friend class CRailBuilder;
11 friend class CLineBuildCurve;
12 friend class CPierPlugin;
13 private:
14 float m_Height; // 高さ
15 bool m_FlattenCant; // カント無効化
16 public:
17 CTiePlugin(char *id): CProfilePlugin(id){}
18 char *DirName(){ return "Tie"; }
19 char *TextName2(){ return "Tie2.txt"; }
20 bool Load();
21 void SetPreview();
22 void AfterDump(VEC3 &, VEC3 &, VEC3 &, VEC3 &, VEC3 &, VEC3 &, VEC3 &, VEC3 &);
23 void CalcPierPos(VEC3 *, VEC3 *, VEC3 *, VEC3 *);
24 CPLUGIN_CASTFUNC(CTiePlugin);
25 };
26
27 /*
28 * 枕木プラグインリスト
29 */
30 class CTiePluginList: public CProfilePluginList{
31 private:
32 public:
33 char *DirName(){ return "Tie"; }
34 char *TextName2(){ return "Tie2.txt"; }
35 char *Default(){ return "Default_JRN_BallastPC"; }
36 CPlugin *NewEntry(char *id){ return new CTiePlugin(id); }
37 CPLUGINLIST_CASTFUNC(CTiePlugin);
38 };
39
40 // 外部グローバル
41 extern CTiePlugin *g_Tie;
42 extern CTiePluginList *g_TiePluginList;
43
44 #endif

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26