« first day (1510 days earlier)   

12:01 AM
Well crap. My inventorySlot handles a bunch of things lol
 
I would probably architect it with a bunch of container classes personally
 
@ChristianFrantz at least you learn
 
You would have some sort of inventory manager which contains the dictionary and manages the number of items that goes into the, the dictionary will contain inventory slots... though this is kind of icky
The key at least doesn't make much sense as an inventory slot
Maybe InventorySlot<T>
 
Each slot knows where it is, but is unaware of other slots
 
Yeah the inventory manager would probably have to deal with that too
 
12:03 AM
a "manager" like type deals with that
 
Probably contain a list of the types and order of slots contained in the dictionary
 
This is something you should draw out @ChristianFrantz
 
Then it doesn't need to be InventorySlot<T>
 
UML is a nice tool
 
I've never even heard of that
 
12:07 AM
Now is the time to research :)
 
Just figured out that my code works if the main class is in the default package.
If I run "appletviewer applet.html" it works beautifully.
"appletviewer ch18/applet.html" doesn't.
It throws up this
Java.lang.NoClassDefFoundError: EXE18_03 (wrong name: ch18/EXE18_03)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:217)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:152)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
Anyone wants to take guess on why this is happening?
 
Why not just put the main class in the default package?
Maybe that's a rule
I dunno
 
I don't think it's a rule. I think it has something to do with the way java looks up files under a package.
"wrong name: ch18/EXE18_03"
It's probably getting the wrong path. What I don't know is the right way to run the command so that it looks up the files in the right directory.
 
12:34 AM
@SpartanDonut you available for a lol game in 10 min?
 
12:50 AM
@SpartanDonut you there?
 
he ded
donut is kill
 
hehe
i see you're back online
 
so we playin?
 
but...starbound... :'(
yeah okay I'll play
at least until you lose your series
 
12:54 AM
hahah ok
oooh defense grid 2 is mac linux win
i never finished first one cause it was win
 
Pip
1:19 AM
Aww yeah, just got Tropico 3 for free via the humble store <3
For 15 more hours only!
 
@Pip I have played every tropico game ever made
<3
 
Pip
Nice
I've played only... 4 I think
 
hmmmm
 
-1
Q: Relationship advice

CoolbanazThere is this guy that likes me or (loves me , thats what my best friend say) and he is friends with my bestfriend's boyfriend He thought I was cute so he started talking to me (I'm in high school I'm a sophomore and he's a junior My bestfriend would take off guard snapchats (short videos) of m...

 
lol -- thank GAWD the author already removed the question :)
 
Pip
1:28 AM
lol
Alright, gotta go finish homework then bed, night all
(might lurk a bit in the background)
 
 
1 hour later…
2:49 AM
@SpartanDonut made silver finally :) almos-lol-blog.blogspot.ca/2014/09/made-silver-5.html
 
Pip
3:01 AM
nice!
 

« first day (1510 days earlier)