I Am Not a Java Programmer
I Am Not a Java Programmer
So I'm not exactly sure how Java sticks together. Make no assumptions about what I do know when replying...thanks.
At the moment, you can write an agent that implements agent:
public class Angry implements LuxAgent
{
...
}
Or, you can extend SmartAgentBase:
public class Bug extends SmartAgentBase {
...
}
This means that Java lets me inherit, so I could implement a SmarterAgentBase:
public class SmarterAgentBase extends SmartAgentBase {
...
}
with more path-finding abilities.
public class Bug extends SmarterAgentBase {
...
}
etc.
But when I compile Bug, does it include the code for SmarterAgentBase, /and/ SmartAgentBase in the class, or does it assume that the base package (Lux) includes that code?
If it assumes that Lux will have it, how would I supply Bug to the Plugin Manager (I supply the .java file to Dustin, right? but if a 3d party wants to use Bug, they would need to /also/ download SmarterAgentBase?)
That's probably a question for Dustin, but for now will start with the inheritance question.
rip
At the moment, you can write an agent that implements agent:
public class Angry implements LuxAgent
{
...
}
Or, you can extend SmartAgentBase:
public class Bug extends SmartAgentBase {
...
}
This means that Java lets me inherit, so I could implement a SmarterAgentBase:
public class SmarterAgentBase extends SmartAgentBase {
...
}
with more path-finding abilities.
public class Bug extends SmarterAgentBase {
...
}
etc.
But when I compile Bug, does it include the code for SmarterAgentBase, /and/ SmartAgentBase in the class, or does it assume that the base package (Lux) includes that code?
If it assumes that Lux will have it, how would I supply Bug to the Plugin Manager (I supply the .java file to Dustin, right? but if a 3d party wants to use Bug, they would need to /also/ download SmarterAgentBase?)
That's probably a question for Dustin, but for now will start with the inheritance question.
rip
ok
I'll look at BotOMatic. I'd BotOfDoom installed but not that one.
Thanks!
Still, my bots end up getting pretty big. Ravitar will end up in Reaper's class probably. For size, certainly probably not for abilities :>
rip
Thanks!
Still, my bots end up getting pretty big. Ravitar will end up in Reaper's class probably. For size, certainly probably not for abilities :>
rip
Re: I Am Not a Java Programmer
Funny, I'm not a java programmer either! I think that your class file does not include any other code. If you go the multiple objects route, you would have to create a directory structure inside the Agents folder to put the other classes in. Something like Agents\com\sillysoft\lux\agent\*.class if you use the com.sillysoft.lux.agent package.rip wrote:But when I compile Bug, does it include the code for SmarterAgentBase, /and/ SmartAgentBase in the class, or does it assume that the base package (Lux) includes that code?
I prefer the KISS principle, and keep everything in one class.
True, Reaper is getting fat, but there is lots of code and text in there to handle chatting. Right now he clocks in at 6.5K lines.rip wrote:Still, my bots end up getting pretty big. Ravitar will end up in Reaper's class probably. For size, certainly probably not for abilities :>
Who is online
Users browsing this forum: No registered users and 54 guests