Esempio n. 1
0
SpriteInfo MainView::movementIconForType(const MovementType effect)
{
  switch (effect)
  {
    case MovementType::NORMAL: return LBXI(MAIN, 38);
    case MovementType::SWIMMING: return LBXI(MAIN, 19);
    case MovementType::FLYING: return LBXI(MAIN, 22);
    case MovementType::SAILING: return LBXI(MAIN, 18);
    case MovementType::FORESTWALK: return LBXI(MAIN, 21);
    case MovementType::MOUNTAINWALK: return LBXI(MAIN, 20);
    case MovementType::PATH_FINDER: return LBXI(MAIN, 23);
    case MovementType::PLANAR_TRAVEL: return LBXI(MAIN, 36);
    case MovementType::WINDWALK: return LBXI(MAIN, 37);
  }
  
  assert(false);
  return 0;
}
Esempio n. 2
0
#include "ViewManager.h"
#include "OutpostView.h"
#include "CityView.h"
#include "ArmyView.h"
#include "UnitDetailView.h"

#include "LBX.h"

#include "Help.h"
#include "Animations.h"
#include "Dialogs.h"

enum lbx_indices
{
  main_backdrop = LBXI(MAIN,0),
  
  right_backdrop_main = LBXI(MAIN, 34),  // 80x97
  right_backdrop_cast = LBXI(MAIN, 40),  // 80x98
  right_backdrop_survey = LBXI(MAIN, 57),  // 80x98
  right_backdrop_road = LBXI(MAIN, 45), // 80x98
  
  next_button_backdrop = LBXI(MAIN, 35), // 80x27
  cancel_button_backdrop = LBXI(MAIN, 47), // 80x27
  road_buttons_backdrop = LBXI(MAIN, 48), // 80x27
};

MainView::MainView(ViewManager *gvm) : View(gvm), hoveredTile(nullptr)
{
  buttons.resize(BUTTON_COUNT);
  
Esempio n. 3
0
#include "GfxData.h"
#include "UnitDraw.h"
#include "LocalPlayer.h"
#include "World.h"
#include "ColorMap.h"
#include "City.h"
#include "Army.h"
#include "Util.h"
#include "Game.h"
#include "GUISettings.h"

#include "Game.h"

enum lbx_indices
{
  city_sprite_with_walls = LBXI(MAPBACK, 20),
  city_sprite_no_walls = LBXI(MAPBACK, 21),
  
  road_none = LBXI(MAPBACK,45),
  road_north = LBXI(MAPBACK,46),
  road_north_west = LBXI(MAPBACK,47),
  road_west = LBXI(MAPBACK,48),
  road_south_west = LBXI(MAPBACK,49),
  road_south = LBXI(MAPBACK,50),
  road_south_east = LBXI(MAPBACK,51),
  road_east = LBXI(MAPBACK,52),
  road_north_east = LBXI(MAPBACK,53),
  
  road_ench_none = LBXI(MAPBACK,54),
  road_ench_north = LBXI(MAPBACK,55),
  road_ench_north_west = LBXI(MAPBACK,56),