本游戏是微软SMART PHONE平台下的手机游戏
源代码在线查看: gamestatestart.cs
using System;
using DiamondPet.LogicLayer.GameStateStartLogic;
namespace DiamondPet.UserLayer
{
///
/// GameStateStart 的摘要说明。
///
public class GameStateStart : GameState
{
///
/// 开始状态父类
///
private StartState startState;
///
/// 选择模式状态
///
private SelectState selectState;
public GameStateStart(UserLayerStateManager u) : base(u)
{
selectState = new SelectState(userLayerStateManager);
//初始状态选择“选择模式”
startState = selectState;
}
public override void UserLayerRunning()
{
startState.StartStateLogic();
}
public override void UserLayerKeyDown(System.Windows.Forms.Keys key)
{
startState.AddCommand(key);
}
public override void UserLayerKeyUp(System.Windows.Forms.Keys key)
{
//startState.AddCommand(key);
}
}
}