Uses of Class
edu.ucsb.cs156.happiercows.entities.Game
Packages that use Game
Package
Description
-
Uses of Game in edu.ucsb.cs156.happiercows.controllers
Methods in edu.ucsb.cs156.happiercows.controllers that return GameMethods in edu.ucsb.cs156.happiercows.controllers that return types with arguments of type GameModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Game> GameController.getDefaultGame()org.springframework.http.ResponseEntity<Game> GameController.updateDashboardSettings(long id, DashboardSettingsParams params) -
Uses of Game in edu.ucsb.cs156.happiercows.jobs
Methods in edu.ucsb.cs156.happiercows.jobs with parameters of type GameModifier and TypeMethodDescriptionstatic doubleMilkTheCowsJob.calculateMilkingProfit(Game game, Farmer farmer) Calculate the profit for a user from milking their cows.static voidMilkTheCowsJob.milkCows(edu.ucsb.cs156.jobs.services.JobContext ctx, Game game, Farmer farmer, ProfitRepository profitRepository, FarmerRepository farmerRepository) This method performs the function of milking the cows for a single farmer.static voidUpdateCowHealthJob.runUpdateJobInGame(Game game, GamePlus gamePlus, GamePlusBuilderService gamePlusBuilderService, GameRepository gameRepository, FarmerRepository farmerRepository, edu.ucsb.cs156.jobs.services.JobContext ctx) static booleanGameGate.shouldProcess(Game game, GameRepository gameRepository, edu.ucsb.cs156.jobs.services.JobContext ctx) Determine whether a job should process the given game, using the current Pacific time as "now" - see issue #318 (the JVM's own default timezone isn't guaranteed to be Pacific).static booleanGameGate.shouldProcess(Game game, GameRepository gameRepository, edu.ucsb.cs156.jobs.services.JobContext ctx, LocalDateTime now) Determine whether a job should process the given game as of the given instant. -
Uses of Game in edu.ucsb.cs156.happiercows.repositories
Subinterfaces with type arguments of type Game in edu.ucsb.cs156.happiercows.repositoriesMethods in edu.ucsb.cs156.happiercows.repositories with parameters of type GameModifier and TypeMethodDescriptionProfitRepository.findAllByFarmer_GameAndTimestampGreaterThanEqualAndTimestampLessThan(Game game, LocalDateTime startInclusive, LocalDateTime endExclusive) HerdRepository.findByFarmer_Game(Game game) FarmerActivityRepository.findByFarmer_GameOrderByTimestampDesc(Game game) -
Uses of Game in edu.ucsb.cs156.happiercows.services
Methods in edu.ucsb.cs156.happiercows.services with parameters of type GameModifier and TypeMethodDescriptionCourseAccessService.findMatchingStudentForCourseLinkedGame(User user, Game game) Returns the Student roster row that corresponds to this user, for the course linked to the given game - but only if the game is actually linked to a course.booleanCourseAccessService.isEligibleForGame(User user, Game game) A user is eligible for a course-linked game if they are an admin, or if their email appears on the course's roster of students or staff.voidFarmerActivityService.recordActivityIfStudentMatch(User user, Game game, Farmer farmer, int activityType, int numCows) Records a FarmerActivity row for the given user/game/farmer/activityType, but only if the game is linked to a course and the user's email matches a student on that course's roster.GamePlusBuilderService.toGamePlus(Game c) Method parameters in edu.ucsb.cs156.happiercows.services with type arguments of type GameModifier and TypeMethodDescriptionGamePlusBuilderService.convertToGamePlus(Iterable<Game> iteOfGame)