Jump to content

  • Log In with Google      Sign In   
  • Create Account

IndyOfComo

Member Since 18 Jul 2012
Offline Last Active Dec 19 2014 08:19 AM

Posts I've Made

In Topic: Need a short name to replace a really really long function's name

20 November 2014 - 08:11 AM

I'm with Diego--maybe it can be shortened because there's a shorter way of saying what you're doing.

 

Personally, I wouldn't bother with the +Event method if all it's going to do is call a method of the same base name and do nothing else.

 

ButIRecognizeAndEmpathizeWithFolksWhoDoNotLikeTheCurrentPopularConventionOfRidiculouslyLongMethodNames. There's something to be said to reading something short (say under 30 chars) and know which method/value is being referenced, rather than having to read all the way out to characters 55-60 to finally distinguish entities.


In Topic: Key input delay

07 October 2014 - 06:48 AM

Also you could put in a timer function to enforce delay, to put a maximum effectiveness or gimp modded controllers/programs.


In Topic: Help Me Be Creative! (making an rpg game need ideas)

11 September 2014 - 07:29 AM

Been listening to any They Might Be Giants by any chance?  ("The Statue Got Me High")

 

I'll need a bit more direction. I like what you've got so far, but where are you liking input?


In Topic: Do you know BBS to recruit amateur game develop members?

16 December 2013 - 09:19 AM

English is difficult.

 

QFT!  smile.png


In Topic: List<MyParentClass>

04 December 2013 - 04:18 PM

 


public GroupIcon SelectedIcon
        {
            get { return icons[selectedPointer]; }
        }

can't compile cause it's trying to convert Type into GroupIcon. And if I change it to Add(GroupIcon t) then IsAssignableFrom() isn't valid. (of course).

 

What'd I do wrong here?

 

I don't understand your code. Although, it looks like your List is of type Icon, but your item icons are subclasses of GroupIcon

The List should be <GroupIcon> ?

 

Also, get should return:

get { return icons[selectedPointer] as GroupIcon; }

 

meaning, you are being returned a GroupIcon, or one of its derivatives

 

I think all of your problems will go away, simply by making the lists not <T> but <GroupIcon>

and call it a day tongue.png

 

 

Sorry, slight mistake in the goal code...fixed BasicComponent.

 

Before going down this path, I had tried just having List<GroupIcon> in BasicComponent but then ItemGroup with List<ItemIcon> didn't have access to the methods particular to ItemIcon.

(There isn't an inverse of base., is there? Where I could have the parent say 'go execute the child's version'?)


PARTNERS