求VB高手帮我解释下这段俄罗斯方块代码的意思吧
详细些万分感谢PublicConstBlockSizeAsLong=4PublicTypeBlockInfoBox(0ToBlockSize-1,0ToBlockSize...
详细些 万分感谢
Public Const BlockSize As Long = 4
Public Type BlockInfo
Box(0 To BlockSize - 1, 0 To BlockSize - 1) As Byte
End Type
Public Const RotateStatusCount As Long = 4
Public Const BlockCount As Long = 5
Public Blocks(0 To RotateStatusCount - 1, 0 To BlockCount - 1) As BlockInfo 展开
Public Const BlockSize As Long = 4
Public Type BlockInfo
Box(0 To BlockSize - 1, 0 To BlockSize - 1) As Byte
End Type
Public Const RotateStatusCount As Long = 4
Public Const BlockCount As Long = 5
Public Blocks(0 To RotateStatusCount - 1, 0 To BlockCount - 1) As BlockInfo 展开
2个回答
展开全部
Public Const BlockSize As Long = 4 //定义公共常量BlockSize=4
Public Type BlockInfo
Box(0 To BlockSize - 1, 0 To BlockSize - 1) As Byte
End Type //定义BlockInfo类型数组Box(0 To BlockSize - 1, 0 To BlockSize - 1)
Public Const RotateStatusCount As Long = 4 //定义公共常量RotateStatusCount=4
Public Const BlockCount As Long = 5 定义公共常量BlockCount=5
Public Blocks(0 To RotateStatusCount - 1, 0 To BlockCount - 1) As BlockInfo ////定义数组Blocks(0 To RotateStatusCount - 1, 0 To BlockCount - 1)作为BlockInfo类型
补充说明:BlockSize指方块的大小。Box(0 To BlockSize - 1, 0 To BlockSize - 1)应该是显示下一个要落下的方块的预览区,所以是4*4的。RotateStatusCount是指落下的方块的朝向,有上下左右四种,所以等于4。BlockCount指方块的数量,等于5,应该指的是预览区中下一个方块的最大数量为5。Blocks(0 To RotateStatusCount - 1, 0 To BlockCount - 1)应该是指落下的方块的状态,包括朝向即个数。
Public Type BlockInfo
Box(0 To BlockSize - 1, 0 To BlockSize - 1) As Byte
End Type //定义BlockInfo类型数组Box(0 To BlockSize - 1, 0 To BlockSize - 1)
Public Const RotateStatusCount As Long = 4 //定义公共常量RotateStatusCount=4
Public Const BlockCount As Long = 5 定义公共常量BlockCount=5
Public Blocks(0 To RotateStatusCount - 1, 0 To BlockCount - 1) As BlockInfo ////定义数组Blocks(0 To RotateStatusCount - 1, 0 To BlockCount - 1)作为BlockInfo类型
补充说明:BlockSize指方块的大小。Box(0 To BlockSize - 1, 0 To BlockSize - 1)应该是显示下一个要落下的方块的预览区,所以是4*4的。RotateStatusCount是指落下的方块的朝向,有上下左右四种,所以等于4。BlockCount指方块的数量,等于5,应该指的是预览区中下一个方块的最大数量为5。Blocks(0 To RotateStatusCount - 1, 0 To BlockCount - 1)应该是指落下的方块的状态,包括朝向即个数。
AiPPT
2024-09-19 广告
2024-09-19 广告
随着AI技术的飞速发展,如今市面上涌现了许多实用易操作的AI生成工具1、简介:AiPPT: 这款AI工具智能理解用户输入的主题,提供“AI智能生成”和“导入本地大纲”的选项,生成的PPT内容丰富多样,可自由编辑和添加元素,图表类型包括柱状图...
点击进入详情页
本回答由AiPPT提供
2009-05-27
展开全部
还解析 我晕 自己找算法书去看
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询