Search:

Type: Posts; User: MasterG

Search: Search took 0.15 seconds.

  1. How to Eliminate FIs and elses

    Hello guys, How to Eliminate ifs and elses using polymorphism, so that the code is more compact and easy to understand.



    public void update( ){
    // is its dead it does nothing
    if( dead...
  2. How to Eliminate FIs and elses

    Good afternoon staff, I would eliminate the ifs and elses using polymorphisms that solves this lot of ifs, could someone help me? How could I solve this?



    // if it is not draggin, see if it...
  3. Re: Dispose of containers ifs and elses using polymorphism

    // if it is not draggin, see if it touches any draggable
    if( !isDragging() ){
    for( WorldElement t : getWorld().getDraggables() ){
    Rectangle...
  4. Dispose of containers ifs and elses using polymorphism

    Good morning guys, I would eliminate the ifs and elses using polymorphisms that solves this lot of ifs, could someone help me? How could I solve this?
Results 1 to 4 of 4