igamestatechangesink.cs

来自「使用蓝牙技术开发的小游戏(在Windows Mobile 6 下开发)」· CS 代码 · 共 43 行

CS
43
字号
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES OR INDEMNITIES.
//
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.

using System;
using System.Collections.Generic;
using System.Text;

namespace SpaceWar2D
{
    /// <summary>
    /// Interface by which a ship communicates its state to the other ship.
    /// </summary>
    interface IGameStateChangeSink
    {
        void OnShipMove(Vector vPos);
        void OnShipDamage(bool isDamaged);
        void OnShipThrust(bool isThrusting);
        void OnShipRotate(int angle);
        void OnMissileMove(int iMissile, Vector vPos);
        void OnMissileGone(int iMissile);
        void OnOtherShipsMissileGone(int iMissile);
    }
}

⌨️ 快捷键说明

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