Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按鈕CD修復 #28

Merged
merged 2 commits into from
Mar 18, 2024
Merged

按鈕CD修復 #28

merged 2 commits into from
Mar 18, 2024

Conversation

ntut-Tu
Copy link
Collaborator

@ntut-Tu ntut-Tu commented Mar 18, 2024

  • 按鈕CD修復
    • 把舊版用一堆指標改成用unitType
    • 修改把建好的建築丟回Scene的方法
    • getIfSelectToBuild : 確定剛剛點的按鈕是哪一個
    • setSelectToBuild : 如果建築CD已經等完,且滑鼠第二次點按鈕,set該建築在下個update建造的bool=true
    • getSelectedBuilding : 從UI取得要在此次update 加入Scene的建築
    • selectLock : 避免同時讓兩個建築處於movable的狀態
    • getIfAnythingCanSelectToBuild : 只有在建築CD已經等完,且滑鼠第二次點按鈕時才會變成true,避免Scene在讀getSelectedBuilding時讀到空的資料
  • 路徑搜尋
    • 每次移動單位讀取路線的front就好了
    • 單位移動bug很多先移掉
    • 撞牆時的判斷還沒做

@ntut-Tu ntut-Tu requested a review from jonylu7 March 18, 2024 14:09
@ntut-Tu ntut-Tu self-assigned this Mar 18, 2024
@jonylu7 jonylu7 merged commit df1d9bc into jonylu7:main Mar 18, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants