-
Notifications
You must be signed in to change notification settings - Fork 1
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
Roguelike 2 #4
base: rogualike-1
Are you sure you want to change the base?
Roguelike 2 #4
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Некоторое количество перемещений героя привело к
Exception in thread "LWJGL Application" java.lang.NullPointerException
at com.roguelike.softwaredesign.au2019.model.Model.moveHero(Model.java:30)
at com.roguelike.softwaredesign.au2019.controller.CommonController.render(CommonController.java:46)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:215)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:120)
Не исключено, что в процессе его убили, трудно сказать :)
Ещё нет юнит-тестов на новую функциональность. Но в остальном всё достаточно хорошо для "за полчаса до дедлайна", так что пусть будет зачтена.
import com.roguelike.softwaredesign.au2019.model.Internal.ViewGameObject; | ||
|
||
|
||
public interface Action { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вообще, ко всем такого рода штукам нужны комментарии
|
||
public class Passive implements Action { | ||
public String getToward(int row, int col, ViewGameObject hero) { | ||
return "HERE"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Необычный способ сделать то, что обычно делают enum-ами или отдельным классом
No description provided.