[r3]: / trunk / RetroGames / Pong / GameObjects / FB_ObjectBase / svnobj  Maximize  Restore  History

Download this file

4 lines (4 with data), 3.5 kB

Gx_lÊ
!0…jüoñ	3ªÙŸ±¨YêSystem.StringL{6f9dac99-8de1-4efc-8465-68ac443b7d08}SpecialFuncL{0db3d7bb-cde0-4416-9a7b-ce49a0124323}NoneImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocument	L{f3878285-8e4f-490b-bb1b-9acbb7eb04db}
TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}Id
longTagTextD// if the input position is valid,J// we replace the object. The output 2// vector is then also 0.(IF posIn.xValid THEN&	//vecOut.rVX := 0;&	//vecOut.rVY := 0;"	posOut := posIn;END_IF"posOld := posOut;"vecOld := vecOut;InterfaceL{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}z/// This is a base interface of physical objects in the game.///˜/// Every object can get an impulse vector as input and a position as input. |/// The impulse is used to influence the object if it is <> 0.!„/// The position is taken to reposition the object if it is valid."’/// Note, that the output vector can be easily used as an input to modify#$/// other objects.$/// %8FUNCTION_BLOCK FB_ObjectBase&VAR_INPUT'$	posIn : POSITION;( 	vecIn : VECTOR;)END_VAR*VAR_OUTPUT+&	posOut : POSITION;,"	vecOut : VECTOR;-VAR.&	posOld : POSITION;/"	vecOld : VECTOR;0(	udiTimeOld : UDINT;1"UniqueIdGenerator21123POULevel4L{8e575c5b-1d37-49c6-941b-5c0ec7874787}5Standard6 ChildObjectGuids78System.Collections.ArrayList8,AddAttributeSubsequent9boolÐÐ-ÐÐ	E

ÐÐ
­hÚÐ-ÐÐ
­iÚÐ-ÐÐ
­jÚÐ-ÐÐ
­kÚÐ-ÐÐ
­lÚÐ-ÐÐ
­mÚÐ-ÐÐ
­nÚÐ-ÐÐ
­oÚÐ-ÐÐ
­pÚÐ-ÐÐ
­eÚÐ-ÐÐ
­fÚÐ-ÐÐ
­gÚÐ-ÐÐ
­LÚÐ-ÐÐ	E
ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ- ÐÐ
­ÚÐ-!ÐÐ
­ÚÐ-ÐÐ
­2ÚÐ-"ÐÐ
­3ÚÐ-#ÐÐ
­ÚÐ-$ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-%ÐÐ
­ÚÐ-&ÐÐ
­ÚÐ-'ÐÐ
­ÚÐ-(ÐÐ
­ÚÐ-)ÐÐ
­ÚÐ-*ÐÐ
­ÚÐ-+ÐÐ
­ÚÐ-,ÐÐ
­ÚÐ-)ÐÐ
­ÚÐ--ÐÐ
­cÚÐ-.ÐÐ
­dÚÐ-/ÐÐ
­DÚÐ-0ÐÐ
­ÚÐ-)Ð1-2Ð34-567Ð89­