blob: 172c39275729be2708e7b1186c0b8d86faf161d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package pokemon;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;
import models.Ability;
import models.Monster;
import models.User;
public interface IService extends Remote {
public boolean addUser(User user)throws RemoteException;
public User login(User user)throws RemoteException;
public long addMonster(Monster monster)throws RemoteException;
public boolean addAbility(Ability ability)throws RemoteException;
public ArrayList<Monster> getMonsters()throws RemoteException;
public Monster getUserMonster(String username) throws RemoteException;
public void addMonsterToUser(long id,long monsterId)throws RemoteException;
}
|