?? puck.hh
字號:
/////////////////////////////////////////////////////////////////////////////// File: puck.hh// Author: brian gerkey// Date: 23 June 2001// Desc: Simulates pucks//// CVS info:// $Source: /cvsroot/playerstage/code/stage/src/models/Attic/puck.hh,v $// $Author: rtv $// $Revision: 1.2 $//// Usage:// (empty)//// Theory of operation:// (empty)//// Known bugs:// (empty)//// Possible enhancements:// (empty)/////////////////////////////////////////////////////////////////////////////#ifndef PUCK_HH#define PUCK_HH#include "entity.hh"class CPuck : public CEntity{ // Default constructor public: CPuck( LibraryItem *libit, CWorld *world, CEntity *parent); // a static named constructor - a pointer to this function is given // to the Library object and paired with a string. When the string // is seen in the worldfile, this function is called to create an // instance of this entitypublic: static CPuck* Creator( LibraryItem *libit, CWorld *world, CEntity *parent ) { return( new CPuck( libit, world, parent ) ); } // Load the entity from the worldfile public: virtual bool Load(CWorldFile *worldfile, int section); // Startup routine public: virtual bool Startup(); // Update the device public: virtual void Update( double sim_time ); // Move the puck private: void Move(); // Return diameter of puck public: double GetDiameter() { return(this->size_x); } // Timings (for movement) private: double m_last_time; // coefficient of "friction" private: double m_friction; // Vision return value when we are being held // Vision return value when we are not being held private: int vision_return_held; private: int vision_return_notheld;#ifdef INCLUDE_RTK // Process GUI update messages // public: virtual void OnUiUpdate(RtkUiDrawData *pData); // Process GUI mouse messages // public: virtual void OnUiMouse(RtkUiMouseData *pData);#endif};#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -