mine.inl

来自「此程序为分布式坦克游戏」· INL 代码 · 共 37 行

INL
37
字号
/*****************************************************************************
*                                                                             
*   Mine.inl
*                                                                             
*   Electrical Engineering Faculty - Software Lab                             
*   Spring semester 1998                                                      
*                                                                             
*   Tanks game                                                                
*                                                                             
*   Contents: Inline functions implementations.
*                                                                             
*   Authors: Eran Yariv - 28484475                                           
*            Moshe Zur  - 24070856                                           
*                                                                            
*                                                                            
*   Date: 23/09/98                                                           
*                                                                            
******************************************************************************/
inline ObjectHeightType 
CMine::GetHeight()
{
    return LOWER_LEVEL;
}

inline GameObjectType
CMine::GetType()
{
    return MINE;
}

inline void
CMine::Kill ()
{
    m_dwStartTime = 1;  // This will cause the mine to automatically expire 
                        // on next call to CMine::CalcState
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?