mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-04 15:27:30 +07:00
Enabled AI stepping with basic velocity adder system
Enabled AI stepping with basic velocity adder system Created ServerAudio implementation of Audio which ignores Riiablo.audio calls
This commit is contained in:
@ -172,7 +172,7 @@ public class Npc extends AI {
|
||||
} else if (actionTimer > 0) {
|
||||
actionTimer -= delta;
|
||||
actionPerformed = actionTimer < 0;
|
||||
if (!actionPerformed) {
|
||||
if (!actionPerformed && Riiablo.game != null) { // FIXME: checking Riiablo.game != null for server instances
|
||||
int player = Riiablo.game.player;
|
||||
Vector2 targetPos = mPosition.get(player).position;
|
||||
Vector2 entityPos = mPosition.get(entityId).position;
|
||||
|
25
core/src/com/riiablo/audio/ServerAudio.java
Normal file
25
core/src/com/riiablo/audio/ServerAudio.java
Normal file
@ -0,0 +1,25 @@
|
||||
package com.riiablo.audio;
|
||||
|
||||
import com.badlogic.gdx.assets.AssetManager;
|
||||
import com.riiablo.codec.excel.Sounds;
|
||||
|
||||
public class ServerAudio extends Audio {
|
||||
public ServerAudio(AssetManager assets) {
|
||||
super(assets);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Instance play(int id, boolean global) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Instance play(String id, boolean global) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized Instance play(Sounds.Entry sound, boolean global) {
|
||||
return null;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user