It is currently 11 Sep 2025, 17:40
   
Text Size

2Fnoed: import * sentences are not good for code

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

2Fnoed: import * sentences are not good for code

Postby Max mtg » 18 Mar 2012, 05:45

I just want to remind you that according to forge coding policies lines like
Code: Select all
import forge.*;
Are not welcome. You should import each class individually
(Reference: http://svn.slightlymagic.net/websvn/dif ... &peg=14792 )


Also, at 14793 you made Zeppelin add 3 life to human in every game during quest, though it was intended to add lives only in "quest games" that is actual 'challenge' mode.
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: 2Fnoed: import * sentences are not allowed

Postby Fnoed » 18 Mar 2012, 07:51

Fixed both problems.
Fnoed
 
Posts: 84
Joined: 20 Dec 2010, 01:03
Has thanked: 0 time
Been thanked: 3 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 34 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 34 users online :: 0 registered, 0 hidden and 34 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 34 guests

Login Form