本游戏是微软SMART PHONE平台下的手机游戏

源代码在线查看: staterunoneplayer.cs

软件大小: 2309 K
上传用户: zaindyclg
关键词: SMART PHONE 微软 手机游戏
下载地址: 免注册下载 普通下载 VIP

相关代码

				using System;
				
				namespace DiamondPet.UserLayer
				{
					/// 
					/// StateRunOnePlayer 的摘要说明。
					/// 
					public class StateRunOnePlayer : GameStateRun
					{
				
						public StateRunOnePlayer()
						{}
				
						public StateRunOnePlayer(UserLayerStateManager u) : base(u)
						{
							this.runStateManager = new RunStateManager(u,this);
						}
						
						#region 主循环
						public override void UserLayerRunning()
						{
							this.runStateManager.runningState.RunStateLogic();
						}
						#endregion
				
						#region 按键控制
						public override void UserLayerKeyDown(System.Windows.Forms.Keys key)
						{
							this.runStateManager.runningState.AddKeyCommand(key,true);
						}
				
						public override void UserLayerKeyUp(System.Windows.Forms.Keys key)
						{
							this.runStateManager.runningState.AddKeyCommand(key,false);
						}
						#endregion
				
				
					}
				}
							

相关资源