Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/CStationBuildMode.cpp

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-c++src
File size: 704 byte(s)


1 #include "stdafx.h"
2 #include "CStation.h"
3 #include "CStationPlugin.h"
4 #include "CStationBuildMode.h"
5
6 /*
7 * モードを有効化
8 */
9 void CStationBuildMode::EnterStructBuild(){
10 ms_ModeLabel = lang(BuildStation);
11 if(g_Station) g_Station->SetPreview();
12 }
13
14 /*
15 * 建設
16 */
17 void CStationBuildMode::Build(){
18 if(g_Station){
19 VEC3 tup, tdir;
20 GetBuildDir(&tdir, &tup);
21 if(g_Station) g_Station->SetTempSwitch();
22 new CStation(g_Station, m_SnapPos, tdir, tup);
23 }
24 }
25
26 /*
27 * レンダリング
28 */
29 void CStationBuildMode::RenderStructBuild(){
30 VEC3 tdir, tup;
31 GetBuildDir(&tdir, &tup);
32 if(g_Station) g_Station->SetTempSwitch();
33 CStationPlugin::RenderPreview(m_SnapPos, tdir, tup);
34 }

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