Automatically precalculate our precalculatables rather than having some

external entity instruct us to do so. We always want them and they're not
that expensive to calculate.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1005 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-02-17 07:17:08 +00:00
parent 318b476632
commit 070c12fbbe
@@ -1,5 +1,5 @@
// //
// $Id: IsoSceneViewModel.java,v 1.18 2001/11/18 04:09:22 mdb Exp $ // $Id: IsoSceneViewModel.java,v 1.19 2002/02/17 07:17:08 mdb Exp $
package com.threerings.miso.scene; package com.threerings.miso.scene;
@@ -103,6 +103,9 @@ public class IsoSceneViewModel
// set our various flags // set our various flags
showCoords = config.getValue(SHOW_COORDS_KEY, DEF_SHOW_COORDS); showCoords = config.getValue(SHOW_COORDS_KEY, DEF_SHOW_COORDS);
showPaths = config.getValue(SHOW_PATHS_KEY, DEF_SHOW_PATHS); showPaths = config.getValue(SHOW_PATHS_KEY, DEF_SHOW_PATHS);
// precalculate various things
precalculate();
} }
/** /**
@@ -163,10 +166,10 @@ public class IsoSceneViewModel
} }
/** /**
* Pre-calculate various member data that are commonly used in * Pre-calculate various member data that are commonly used in working
* working with an isometric view. * with an isometric view.
*/ */
public void precalculate () protected void precalculate ()
{ {
// pre-calculate tile-related data // pre-calculate tile-related data
precalculateTiles(); precalculateTiles();