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

Roguelike 2 #4

Open
wants to merge 11 commits into
base: rogualike-1
Choose a base branch
from
Open

Roguelike 2 #4

wants to merge 11 commits into from

Conversation

pluralia
Copy link
Collaborator

No description provided.

Copy link

@yurii-litvinov yurii-litvinov left a 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 {

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";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Необычный способ сделать то, что обычно делают enum-ами или отдельным классом

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.

3 participants