Develop and Download Open Source Software

Browse Subversion Repository

Contents of /trunk/freesc/mybuild.scm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30 - (show annotations) (download)
Mon Feb 26 13:50:55 2007 UTC (17 years, 1 month ago) by tmurakam
File size: 1195 byte(s)
file moved

1 //
2 // mybuild.scm
3 // FS2K building command for FreeSC
4 //
5
6 defun CommonBuilding
7 local($type)
8
9 $type = %1
10 shift(1)
11
12 Area( 5 %1 %2 10 )
13 PerspectiveCall( :Sub )
14 ShadowCall( :Shadow )
15 Jump( : )
16
17 :Sub
18 Perspective
19 :Shadow
20 if( %4 )
21 Refpoint( 2 :No_object 1 %1 %2 E= %4 V1= 8000 )
22 else
23 Refpoint( 7 :No_object 1 %1 %2 V1= 8000 )
24 endif
25
26 if( %3 )
27 RotatedCall( :Object 0 0 %3 )
28 else
29 Call( :Object )
30 endif
31 :No_object
32 Return
33
34 :Object
35 shift(4)
36 AdvBldg($type %a)
37 Return
38 EndA
39 endfun
40
41
42 // NormalBuilding : FS2K square building
43 // usage
44 // %1 : Lat
45 // %2 : Lon
46 // %3 : Rotation
47 // %4 : Alt
48 // following arguments are same as AdvBldg
49
50 defun NormalBuilding
51 CommonBuilding(NORMAL %a)
52 endfun
53
54 defun PolyBuilding
55 CommonBuilding(POLY %a)
56 endfun
57
58 //
59 // Commonly used building
60 //
61 // %1 : Lat
62 // %2 : Lon
63 // %3 : Rotateion
64 // %4 : Alt
65 // %5 : Height (m)
66 // %6 : x width
67 // %7 : y width
68
69 // NOT YET!!!
70 defun WhiteVertBuilding
71 Local( $midh )
72 $midh = %5 - 8
73 CommonBuilding(NORMAL %1 %2 %3 %4 %6 %7 // lat lon rot alt x y
74 LEVEL1 0x00 4 0x100 0x80
75 LEVEL2 0x00 $midh 0x100 ($midh / 4 * 0x100) (%6)
76 LEVEL3 0x00 4 0x100 0x80
77 ROOF 0x00 0x100 0x100
78 )
79 endfun

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

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