AtHome方法
描述
若目前機器人位於起始點位置,會傳回True。
語法
Function AtHome () As Boolean
傳回值
若目前機器人位於起始點位置,會傳回True,否則會傳回False。
另請參閱
Home方法
AtHome範例
VB 例:
If m_spel.AtHome() Then
lblCurPos.Text = "Robot is at home position"
Else
lblCurPos.Text = "Robot is not at home position"
End If
C# 例:
if(m_spel.AtHome())
lblCurPos.Text = "Robot is at home position";
else
lblCurPos.Text = "Robot is not at home position";