Hello all -
I'm trying to convert this simple python to java but I feel like I'm doing something wrong.
Code:
def npcInteractOptionOne_Captain_Bentley(player, *npc):
session = WiseOldMan(player, npc)
session.initiate()
More specifically, I can't call this in Java like this:
Code:
DialogueSession session = new CaptainBentley(p, npc);
session.initiate();
because CaptainBentley.java expects these arguments
Code:
public CaptainBentley(Player player, NPC[] actors)
{
super(player, actors);
this.npc = actors[0];
}
so how is the python script passing a single NPC to a class that expects an array? And what does *npc mean in this context? A list of NPCs (such as an array)?
Feel like this is such a dumb question that even google can't help me :/
Thanks,
-Mini