JASS代码加翻译(第八篇)

这篇博客介绍了多种检查地图可见性、游戏状态、单位属性和游戏元素的函数,包括点是否在迷雾中、坐标是否在黑色阴影内、可破坏物的状态以及任务完成情况等。此外,还提到了一些地图参数设置、游戏存档存在性以及哈希表操作的相关函数。
摘要由CSDN通过智能技术生成

[IsLocationFoggedToPlayer]
title = "点在迷雾中"
description = "${指定点} 在 ${Player} 的迷雾范围内"
comment = "黑色阴影内的点不被计算在内."
category = TC_VISIBILITY
returns = boolean
keynum = 2
type1 = location
default1 = "GetRectCenter"
type2 = player
default2 = "Player00"

[IsFoggedToPlayer]
title = "坐标在迷雾中"
description = "坐标(${x},${y}) 在 ${玩家} 的迷雾范围内"
comment = "黑色阴影内的坐标不被计算在内。"
category = TC_VISIBILITY
returns = boolean
keynum = 3
type1 = real
type2 = real
type3 = player
default3 = "Player00"

[IsLocationMaskedToPlayer]
title = "点在黑色阴影中"
description = "${指定点} 在 ${Player} 的黑色阴影内"
comment = ""
category = TC_VISIBILITY
returns = boolean
keynum = 2
type1 = location
default1 = "GetRectCenter"
type2 = player
default2 = "Player00"

[IsMaskedToPlayer]
title = "坐标在黑色阴影中"
description = "坐标(${x},${y}) 在 ${玩家} 的黑色阴影内"
comment = ""
category = TC_VISIBILITY
returns = boolean
keynum = 3
type1 = real
type2 = real
type3 = player
default3 = "Player00"

[IsDestructableAliveBJ]
title = "可破坏物存活"
description = "${可破坏物} 是存活的"
comment = ""
category = TC_DESTRUCT
returns = boolean
keynum = 1
type1 = destructable
default1 = "GetLastCreatedDestructable"

[IsDestructableDeadBJ]
title = "可破坏物死亡"
description = "${可破坏物} 是死亡的"
comment = ""
category = TC_DESTRUCT
returns = boolean
keynum = 1
type1 = destructable
default1 = "GetLastCreatedDestructable"

[IsDestructableInvulnerableBJ]
title = "物件无敌"
description = "${物件} 是无敌的"
comment = ""
script_name = IsDestructableInvulnerable
category = TC_DESTRUCT
returns = boolean
keynum = 1
type1 = destructable
default1 = "GetLastCreatedDestructable"

[GetElevatorHeight]
title = "升降机高度"
description = "${升降机} 的高度"
comment = "可以使用'可破坏物 - 设置升降机高度'来设置升降机高度."
category = TC_DESTRUCT
returns = integer
keynum = 1
type1 = destructable

[GetDestructableLife]
title = "生命值"
description = "${可破坏物} 的当前生命值"
comment = ""
category = TC_DESTRUCT
returns = real
keynum = 1
type1 = destructable
default1 = "GetLastCreatedDestructable"

[GetDestructableMaxLife]
title = "最大生命值"
description = "${可破坏物} 的最大生命值"
comment = ""
category = TC_DESTRUCT
returns = real
keynum = 1
type1 = destructable
default1 = "GetLastCreatedDestructable"

[GetDestructableOccluderHeight]
title = "闭塞高度"
description = "${可破坏物} 的闭塞高度"
comment = ""
category = TC_DESTRUCT
returns = real
keynum = 1
type1 = destructable
default1 = "GetLastCreatedDestructable"

[GetDestructableX]
title = "可破坏物所在X轴坐标 [R]"
description = "${可破坏物} 所在X轴坐标"
comment = ""
category = TC_DESTRUCT
returns = real
keynum = 1
type1 = destructable
default1 = "GetLastCreatedDestructable"

[GetDestructableY]
title = "可破坏物所在Y轴坐标 [R]"
description = "${可破坏物} 所在Y轴坐标"
category = TC_DESTRUCT
returns = real
keynum = 1
type1 = destructable
default1 = "GetLastCreatedDestructable"

[GetDestructableName]
title = "物件名字"
description = "${物件} 的名字"
comment = ""
category = TC_DESTRUCT
returns = string
keynum = 1
type1 = destructable
default1 = "GetLastCreatedDestructable"

[GetDestructableLoc]
title = "可破坏物位置"
description = "${可破坏物} 的位置"
comment = "会创建点."
category = TC_DESTRUCT
returns = location
keynum = 1
type1 = destructable
default1 = "GetLastCreatedDestructable"

[LeaderboardHasPlayerItemBJ]
title = "玩家在排行榜"
description = "${Leaderboard} 中包含 ${Player}"
comment = ""
script_name = LeaderboardHasPlayerItem
category = TC_LEADERBOARD
returns = boolean
keynum = 2
type1 = leaderboard
default1 = "GetLastCreatedLeaderboard"
type2 = player
default2 = "Player00"

[LeaderboardGetPlayerIndexBJ]
title = "排行榜位置"
description = "${Player} 在 ${Leaderboard} 的排名"
comment = ""
category = TC_LEADERBOARD
returns = integer
keynum = 2
type1 = player
default1 = "Player00"
type2 = leaderboard
default2 = "GetLastCreatedLeaderboard"

[LeaderboardGetItemCount]
title = "行数"
description = "${Leaderboard} 的行数"
comment = ""
category = TC_LEADERBOARD
returns = integer
keynum = 1
type1 = leaderboard
default1 = "GetLastCreatedLeaderboard"

[LeaderboardGetIndexedPlayerBJ]
title = "玩家所在排行榜位置"
description = "第 ${Position} 位玩家在 ${Leaderboard} 中"
comment = ""
category = TC_LEADERBOARD
use_in_event = 0
returns = player
keynum = 2
type1 = integer
default1 = "1"
min1 = 1
max1 = 16
type2 = leaderboard
default2 = "GetLastCreatedLeaderboard"

[IsPointInRegion]
title = "包含坐标"
description = "${不规则区域} 内包含坐标(${X},${Y})"
comment = "TC_REGION"
category = TC_REGION
returns = boolean
keynum = 3
type1 = region
type2 = real
default2 = "0"
type3 = real
default3 = "0"

[IsLocationInRegion]
title = "包含点"
description = "${不规则区域} 内包含点: ${点}"
comment = "TC_REGION"
category = TC_REGION
returns = boolean
keynum = 2
type1 = region
type2 = location

[RectContainsLoc]
title = "包含点"
description = "${矩形区域} 内包含 ${点}"
comment = ""
category = TC_RECT
returns = boolean
keynum = 2
type1 = rect
default1 = "GetPlayableMapRect"
type2 = location

[GetRectCenterX]
title = "中心X坐标"
description = "${矩形区域} 的中心X坐标"
comment = ""
category = TC_RECT
returns = real
keynum = 1
type1 = rect
default1 = "GetPlayableMapRect"

[GetRectCenterY]
title = "中心Y坐标"
description = "${矩形区域} 的中心Y坐标"
comment = ""
category = TC_RECT
returns = real
keynum = 1
type1 = rect
default1 = "GetPlayableMapRect"

[GetRectMinX]
title = "左下角X坐标"
description = "${矩形区域} 的左下角X坐标"
comment = ""
category = TC_RECT
returns = real
keynum = 1
type1 = rect
default1 = "GetPlayableMapRect"

[GetRectMinY]
title = "左下角Y坐标"
description = "${矩形区域} 的左下角Y坐标"
comment = ""
cate

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值