🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.lang.lisp
Article #486

flavor

#486
From: Hisao Kuroda
Date: Fri, 10 Jan 1992 04:11
38 lines
1795 bytes
$@$3$N(J NG $@$,$"$s$^$j<d$7$$$N$G!"<ALd$7$^$9!#(J

$@!V(JLISP $@%^%7%s!&%W%m%0%i%_%s%05;K!!W!!%V%m%`%j%$Cx(J/$@D9C+@n=c0lLu(J
$@$K$D$$$F$N<ALd$G$9!#(J

P.100 $@$N%j%9%H$r$=$N$^$^!"(J

(defmethod (accelerate moving-object) (pct-thrust delta-time)
  (ignore pct-thrust delta-time))

(defflavor engine-mixin
    (thrust
     orientation)
    (moving-object)
  :initable-instance-variables)      --  $@Dj5A(J-1

(defmethod (accelerate engine-mixin) (pct-thrust delta-time)
  (let* ((true-thrust (* thrust pcg-thrust .01))
	 (thrust-x (* true-thrust (cos orientateion)))
	 (thrust-y (* true-thrust (sin orientation))))
    (incf x-velocity (* thrust-x delta-time))
    (incf y-velocity (* thrust-y delta-time))))

(defflavor ship
    ()
    (engine-mixin moving-object))    --  $@Dj5A(J-2

$@Dj5A(J-1 $@$G!"(Jengine-mixin $@$O!"(Jmoving-object $@$r7Q>5$7$F$$$^$9$,!"(J
$@Dj5A(J-2 $@$G!"(Jship $@$O!"(J engine-mixin $@$H(J moving-object $@$NN>J}$r7Q>5$7$F$$$^$9!#(J
engine-mixin $@$O$9$G$K(J moving-object $@$r7Q>5$7$F$$$k$N$G!";d$O!"(Jship$@!!$r(J

(defflavor ship
    ()
    (engine-mixin))                  --  $@Dj5A(J-3

$@$HDj5A$9$k$@$1$G$h$$$H;W$&$N$G$9$,!"$3$l$@$H$I$3$,$^$:$$$N$G$7$g$&$+!)(J

  kuroda@msi.co.jp ($@9uED<wCK(J)
Technical Details
Message-ID: <342@msisun.msi.co.jp>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!ccut!wnoc-tyo-news!sh.wide!kogwy!msisun!kuroda

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: 1421c0,c61f204b376bac32,start
X-Google-Attributes: gid1421c0,public
X-Google-ArrivalTime: 1992-01-10 03:33:43 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!ccut!wnoc-tyo-news!sh.wide!kogwy!msisun!kuroda
From: kuroda@msisun.msi.co.jp (Hisao Kuroda)
Newsgroups: fj.lang.lisp
Subject: flavor
Message-ID: <342@msisun.msi.co.jp>
Date: 10 Jan 92 04:11:14 GMT
Distribution: fj
Organization: MSI.Inc. Shinjyuku-ku,Tokyo,JAPAN
Lines: 38